Exception: JSONAPI::Exceptions::UserDefinedExceptions::InvalidComponent
- Inherits:
-
StandardError
- Object
- StandardError
- JSONAPI::Exceptions::UserDefinedExceptions::InvalidComponent
- Defined in:
- lib/easy/jsonapi/exceptions/user_defined_exceptions.rb
Overview
Invaliid Document Error when checking user defined restrictions
Direct Known Subclasses
Instance Attribute Summary collapse
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(err) ⇒ InvalidComponent
constructor
A new instance of InvalidComponent.
Constructor Details
#initialize(err) ⇒ InvalidComponent
Returns a new instance of InvalidComponent.
16 17 18 19 20 |
# File 'lib/easy/jsonapi/exceptions/user_defined_exceptions.rb', line 16 def initialize(err) @msg = err[0] @status_code = err[1] || 400 super end |
Instance Attribute Details
#msg ⇒ Object
Returns the value of attribute msg.
14 15 16 |
# File 'lib/easy/jsonapi/exceptions/user_defined_exceptions.rb', line 14 def msg @msg end |
#status_code ⇒ Object
Returns the value of attribute status_code.
14 15 16 |
# File 'lib/easy/jsonapi/exceptions/user_defined_exceptions.rb', line 14 def status_code @status_code end |