Class: Confium::NotFoundError
- Inherits:
-
Error
- Object
- Error
- Confium::NotFoundError
- Defined in:
- lib/confium/errors/not_found_error.rb
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.
8 9 10 11 12 13 |
# File 'lib/confium/errors/not_found_error.rb', line 8 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.
6 7 8 |
# File 'lib/confium/errors/not_found_error.rb', line 6 def identifier @identifier end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
6 7 8 |
# File 'lib/confium/errors/not_found_error.rb', line 6 def kind @kind end |