Exception: IPCrypt::InvalidKeyTypeError

Inherits:
Exception
  • Object
show all
Defined in:
lib/ipcrypt/exceptions.rb

Instance Method Summary collapse

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