Exception: AgentsID::AgentsIDError
- Inherits:
-
StandardError
- Object
- StandardError
- AgentsID::AgentsIDError
- Defined in:
- lib/agentsid/errors.rb
Direct Known Subclasses
AuthenticationError, PermissionDeniedError, TokenExpiredError, TokenRevokedError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, code: "UNKNOWN", status_code: nil) ⇒ AgentsIDError
constructor
A new instance of AgentsIDError.
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(, code: "UNKNOWN", status_code: nil) super() @code = code @status_code = status_code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/agentsid/errors.rb', line 5 def code @code end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
5 6 7 |
# File 'lib/agentsid/errors.rb', line 5 def status_code @status_code end |