Exception: ClientAuth::Errors::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- ClientAuth::Errors::BaseError
- Defined in:
- lib/client_auth/models/errors/base_error.rb
Direct Known Subclasses
ClientError, InternalServerError, PreconditionFailed, ResourceNotFound, UnprocessableEntity
Instance Attribute Summary collapse
-
#detail ⇒ Object
(also: #message)
Returns the value of attribute detail.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(status, detail) ⇒ BaseError
constructor
A new instance of BaseError.
- #inspect ⇒ Object
Constructor Details
#initialize(status, detail) ⇒ BaseError
Returns a new instance of BaseError.
8 9 10 11 12 |
# File 'lib/client_auth/models/errors/base_error.rb', line 8 def initialize(status, detail) @status = status @title = self.class.name @detail = detail end |
Instance Attribute Details
#detail ⇒ Object Also known as: message
Returns the value of attribute detail.
4 5 6 |
# File 'lib/client_auth/models/errors/base_error.rb', line 4 def detail @detail end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/client_auth/models/errors/base_error.rb', line 4 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/client_auth/models/errors/base_error.rb', line 4 def title @title end |
Instance Method Details
#headers ⇒ Object
18 19 20 |
# File 'lib/client_auth/models/errors/base_error.rb', line 18 def headers {} end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/client_auth/models/errors/base_error.rb', line 14 def inspect "#{status} #{title}: '#{detail}'" end |