Exception: SimplyAES::Cipher::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SimplyAES::Cipher::Error
- Defined in:
- lib/simply-aes/cipher/error.rb
Overview
SimplyAES::Cipher::Error is a wrapper for all errors raised by SimplyAES::Cipher
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(*args) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/simply-aes/cipher/error.rb', line 11 def initialize(*args) @cause = $! # rubocop:disable Style/SpecialGlobalVars super end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
15 16 17 |
# File 'lib/simply-aes/cipher/error.rb', line 15 def cause @cause end |