Exception: AgentsID::AgentsIDError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/agentsid/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: "UNKNOWN", status_code: nil) ⇒ AgentsIDError

Returns a new instance of AgentsIDError.



7
8
9
10
11
# File 'lib/agentsid/errors.rb', line 7

def initialize(message, code: "UNKNOWN", status_code: nil)
  super(message)
  @code = code
  @status_code = status_code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



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

def status_code
  @status_code
end