Class: Confium::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/confium/errors/not_found_error.rb

Overview

Raised when a referenced slot/cert/share is not present.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, details_hash = nil, **kwargs)
  message, kwargs = Confium::Errors::Coerce.args(message, details_hash, kwargs)
  @kind = kwargs.delete(:kind)
  @identifier = kwargs.delete(:identifier)
  super(message, details: { kind: @kind, identifier: @identifier, **kwargs })
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



5
6
7
# File 'lib/confium/errors/not_found_error.rb', line 5

def identifier
  @identifier
end

#kindObject (readonly)

Returns the value of attribute kind.



5
6
7
# File 'lib/confium/errors/not_found_error.rb', line 5

def kind
  @kind
end