Exception: Age::GenerateKeyPairError
- Inherits:
-
StandardError
- Object
- StandardError
- Age::GenerateKeyPairError
- Defined in:
- lib/age/errors.rb
Overview
Custom error class for generate key pair errors.
Instance Attribute Summary collapse
-
#reason ⇒ String?
readonly
Reason for the key pair generation error.
Instance Method Summary collapse
-
#initialize(reason = nil) ⇒ GenerateKeyPairError
constructor
A new instance of GenerateKeyPairError.
Constructor Details
#initialize(reason = nil) ⇒ GenerateKeyPairError
Returns a new instance of GenerateKeyPairError.
37 38 39 40 |
# File 'lib/age/errors.rb', line 37 def initialize(reason = nil) @reason = reason super('Generation key pair failed.') end |
Instance Attribute Details
#reason ⇒ String? (readonly)
Returns reason for the key pair generation error.
35 36 37 |
# File 'lib/age/errors.rb', line 35 def reason @reason end |