Exception: ApiExceptions::BaseException
- Inherits:
-
StandardError
- Object
- StandardError
- ApiExceptions::BaseException
- Defined in:
- app/lib/api_exceptions/base_exception.rb
Direct Known Subclasses
AccessForbiddenError, NeedAdminError, NotResourceMemberError, ResourceNotFound, UnprocessableEntity
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'app/lib/api_exceptions/base_exception.rb', line 5 def data @data end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'app/lib/api_exceptions/base_exception.rb', line 5 def status @status end |
Instance Method Details
#as_json ⇒ Object
7 8 9 10 11 |
# File 'app/lib/api_exceptions/base_exception.rb', line 7 def as_json { data: data } end |