Class: Confium::NotFoundError
- Inherits:
-
Error
- Object
- Error
- Confium::NotFoundError
- Defined in:
- lib/confium/errors/not_found_error.rb
Overview
Raised when a referenced slot/cert/share is not present.
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ NotFoundError
Returns a new instance of NotFoundError.
7 8 9 10 11 12 |
# File 'lib/confium/errors/not_found_error.rb', line 7 def initialize( = nil, details_hash = nil, **kwargs) , kwargs = Confium::Errors::Coerce.args(, details_hash, kwargs) @kind = kwargs.delete(:kind) @identifier = kwargs.delete(:identifier) super(, details: { kind: @kind, identifier: @identifier, **kwargs }) end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
5 6 7 |
# File 'lib/confium/errors/not_found_error.rb', line 5 def identifier @identifier end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
5 6 7 |
# File 'lib/confium/errors/not_found_error.rb', line 5 def kind @kind end |