Exception: SSLTool::KeyHelper::KeyNotFoundError
- Inherits:
-
KeyHelperError
- Object
- StandardError
- Error
- KeyHelperError
- SSLTool::KeyHelper::KeyNotFoundError
- Defined in:
- lib/ssltool/key_helper.rb
Instance Attribute Summary collapse
-
#cert ⇒ Object
readonly
Returns the value of attribute cert.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize(cert, keys) ⇒ KeyNotFoundError
constructor
A new instance of KeyNotFoundError.
Constructor Details
#initialize(cert, keys) ⇒ KeyNotFoundError
Returns a new instance of KeyNotFoundError.
17 18 19 20 |
# File 'lib/ssltool/key_helper.rb', line 17 def initialize(cert, keys) @cert, @keys = cert, keys super("None of the given #{keys.length} keys match the certificate #{cert.subject}.") end |
Instance Attribute Details
#cert ⇒ Object (readonly)
Returns the value of attribute cert.
16 17 18 |
# File 'lib/ssltool/key_helper.rb', line 16 def cert @cert end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
16 17 18 |
# File 'lib/ssltool/key_helper.rb', line 16 def keys @keys end |