Exception: Age::DecryptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Age::DecryptionError
- Defined in:
- lib/age/errors.rb
Overview
Custom error class for decryption errors.
Instance Attribute Summary collapse
-
#reason ⇒ String?
readonly
Reason for the decryption error.
Instance Method Summary collapse
-
#initialize(reason = nil) ⇒ DecryptionError
constructor
A new instance of DecryptionError.
Constructor Details
#initialize(reason = nil) ⇒ DecryptionError
Returns a new instance of DecryptionError.
24 25 26 27 |
# File 'lib/age/errors.rb', line 24 def initialize(reason = nil) @reason = reason super('Decryption failed.') end |
Instance Attribute Details
#reason ⇒ String? (readonly)
Returns reason for the decryption error.
22 23 24 |
# File 'lib/age/errors.rb', line 22 def reason @reason end |