Class: Confium::CryptoError
- Inherits:
-
Error
- Object
- Error
- Confium::CryptoError
- Defined in:
- lib/confium/errors/crypto_error.rb
Instance Attribute Summary collapse
-
#primitive ⇒ Object
readonly
Returns the value of attribute primitive.
Instance Method Summary collapse
-
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ CryptoError
constructor
A new instance of CryptoError.
Constructor Details
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ CryptoError
Returns a new instance of CryptoError.
9 10 11 12 13 |
# File 'lib/confium/errors/crypto_error.rb', line 9 def initialize( = nil, details_hash = nil, **kwargs) , kwargs = Confium::Errors::Coerce.args(, details_hash, kwargs) @primitive = kwargs.delete(:primitive) super(, details: { primitive: @primitive, **kwargs }) end |
Instance Attribute Details
#primitive ⇒ Object (readonly)
Returns the value of attribute primitive.
7 8 9 |
# File 'lib/confium/errors/crypto_error.rb', line 7 def primitive @primitive end |