Permalink
Browse files

Allow for log_* exceptions, although they aren`t thrown before Gizzar…

…d 3.0.22
  • Loading branch information...
1 parent 48a52ef commit 24900296c76b054d485deb0f5f939b0ca3fdcef8 @stuhood stuhood committed May 13, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/gizzard/thrift.rb
View
@@ -299,12 +299,12 @@ class Manager < GizzmoService
# (log entries are binary, but this client doesn't support labeling them as such)
# create or get a log, returning a binary id for that log
- thrift_method :log_create, string, field(:log_name, string, 1)
- thrift_method :log_get, string, field(:log_name, string, 1)
+ thrift_method :log_create, string, field(:log_name, string, 1), :throws => exception(GizzardException)
+ thrift_method :log_get, string, field(:log_name, string, 1), :throws => exception(GizzardException)
# given a log id, push/pop/peek binary data on that log
- thrift_method :log_entry_push, void, field(:log_id, string, 1), field(:log_entry, struct(LogEntry), 2)
- thrift_method :log_entry_peek, list(struct(LogEntry)), field(:log_id, string, 1), field(:count, i32, 2)
- thrift_method :log_entry_pop, void, field(:log_id, string, 1), field(:log_entry_id, i32, 2)
+ thrift_method :log_entry_push, void, field(:log_id, string, 1), field(:log_entry, struct(LogEntry), 2), :throws => exception(GizzardException)
+ thrift_method :log_entry_peek, list(struct(LogEntry)), field(:log_id, string, 1), field(:count, i32, 2), :throws => exception(GizzardException)
+ thrift_method :log_entry_pop, void, field(:log_id, string, 1), field(:log_entry_id, i32, 2), :throws => exception(GizzardException)
end

0 comments on commit 2490029

Please sign in to comment.