Exception: IPCrypt::InvalidKeyTypeError
- Inherits:
-
Exception
- Object
- Exception
- IPCrypt::InvalidKeyTypeError
- Defined in:
- lib/ipcrypt/exceptions.rb
Instance Method Summary collapse
-
#initialize(key, type) ⇒ InvalidKeyTypeError
constructor
A new instance of InvalidKeyTypeError.
Constructor Details
#initialize(key, type) ⇒ InvalidKeyTypeError
Returns a new instance of InvalidKeyTypeError.
8 9 10 |
# File 'lib/ipcrypt/exceptions.rb', line 8 def initialize(key, type) super "Expected key '#{key}' to be a String, got #{type}" end |