Exception: JSONAPI::Exceptions::DocumentExceptions::InvalidDocument
- Inherits:
-
StandardError
- Object
- StandardError
- JSONAPI::Exceptions::DocumentExceptions::InvalidDocument
- Defined in:
- lib/easy/jsonapi/exceptions/document_exceptions.rb
Overview
A more specific standard error to raise when an exception is found
Instance Attribute Summary collapse
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code) ⇒ InvalidDocument
constructor
Init w a status code, so that it can be accessed when rescuing an exception.
Constructor Details
#initialize(status_code) ⇒ InvalidDocument
Init w a status code, so that it can be accessed when rescuing an exception
50 51 52 53 |
# File 'lib/easy/jsonapi/exceptions/document_exceptions.rb', line 50 def initialize(status_code) @status_code = status_code super end |
Instance Attribute Details
#status_code ⇒ Object
Returns the value of attribute status_code.
47 48 49 |
# File 'lib/easy/jsonapi/exceptions/document_exceptions.rb', line 47 def status_code @status_code end |