Exception: Meerkat::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Meerkat::Error
- Defined in:
- lib/meerkat/error.rb
Direct Known Subclasses
ApiError, AuthenticationError, NotFoundError, ValidationError
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, errors: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status: nil, errors: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/meerkat/error.rb', line 7 def initialize( = nil, status: nil, errors: nil) super() @status = status @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/meerkat/error.rb', line 5 def errors @errors end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/meerkat/error.rb', line 5 def status @status end |