Exception: SSLTool::KeyHelper::KeyNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- 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.
14 15 16 17 |
# File 'lib/ssltool/key_helper.rb', line 14 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.
13 14 15 |
# File 'lib/ssltool/key_helper.rb', line 13 def cert @cert end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
13 14 15 |
# File 'lib/ssltool/key_helper.rb', line 13 def keys @keys end |