Exception: IPCrypt::InvalidKeyBytesError
- Inherits:
-
Exception
- Object
- Exception
- IPCrypt::InvalidKeyBytesError
- Defined in:
- lib/ipcrypt/exceptions.rb
Instance Method Summary collapse
-
#initialize(key, bytes) ⇒ InvalidKeyBytesError
constructor
A new instance of InvalidKeyBytesError.
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 |