Skip to content

Commit

Permalink
unrecognized exception code should raise a ZookeeperException, not Ex…
Browse files Browse the repository at this point in the history
…ception
  • Loading branch information
slyphon committed May 4, 2012
1 parent c3b9718 commit b60cb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zookeeper/exceptions.rb
Expand Up @@ -106,7 +106,7 @@ def self.by_code(code)
when ZCLOSING then Closing
when ZNOTHING then Nothing
when ZSESSIONMOVED then SessionMoved
else Exception.new("no exception defined for code #{code}")
else ZookeeperException.new("no exception defined for code #{code}")
end
end

Expand Down

0 comments on commit b60cb95

Please sign in to comment.