Exception: SimplyAES::Cipher::Error

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#causeObject (readonly)

Returns the value of attribute cause.



15
16
17
# File 'lib/simply-aes/cipher/error.rb', line 15

def cause
  @cause
end