Exception: Legion::Extensions::ServiceNow::Errors::ServiceNowError
- Inherits:
-
StandardError
- Object
- StandardError
- Legion::Extensions::ServiceNow::Errors::ServiceNowError
- Defined in:
- lib/legion/extensions/service_now/errors.rb
Direct Known Subclasses
AuthenticationError, AuthorizationError, NotFoundError, RateLimitError, ServerError, UnprocessableError
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, detail: nil) ⇒ ServiceNowError
constructor
A new instance of ServiceNowError.
Constructor Details
#initialize(message, status: nil, detail: nil) ⇒ ServiceNowError
Returns a new instance of ServiceNowError.
10 11 12 13 14 |
# File 'lib/legion/extensions/service_now/errors.rb', line 10 def initialize(, status: nil, detail: nil) super() @status = status @detail = detail end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
8 9 10 |
# File 'lib/legion/extensions/service_now/errors.rb', line 8 def detail @detail end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/legion/extensions/service_now/errors.rb', line 8 def status @status end |