Exception: IPCrypt::InvalidKeyBytesError

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

Instance Method Summary collapse

Constructor Details

#initialize(key, bytes) ⇒ InvalidKeyBytesError

Returns a new instance of InvalidKeyBytesError.



13
14
15
# File 'lib/ipcrypt/exceptions.rb', line 13

def initialize(key, bytes)
  super "Expected key '#{key}' to be 16-byte, got #{bytes} byte#{bytes == 1 ? '' : ?s}"
end