Browse files

move SharedSecret exceptions to be descendants of StandardError

  • Loading branch information...
1 parent 8e88153 commit d8bd0e585da8eccfc1ae451810280d4dbf20e1d1 Cody Fauser committed with caius Jan 22, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/warren/filters/shared_secret.rb
View
4 lib/warren/filters/shared_secret.rb
@@ -20,9 +20,9 @@ class MessageFilter
#
class SharedSecret < MessageFilter
# Raised when no key (salt) is provided
- class NoKeyError < Exception; end
+ class NoKeyError < StandardError; end
# Raised when there is a key mismatch error
- class KeyValidationError < Exception; end
+ class KeyValidationError < StandardError; end
# Sets the key to use
def self.key= key

0 comments on commit d8bd0e5

Please sign in to comment.