Exception: VBS::Requests::InvalidRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- VBS::Requests::InvalidRequestError
- Defined in:
- lib/vbs/requests/invalid_request_error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(json_schema_errors) ⇒ InvalidRequestError
constructor
A new instance of InvalidRequestError.
Constructor Details
#initialize(json_schema_errors) ⇒ InvalidRequestError
Returns a new instance of InvalidRequestError.
8 9 10 11 12 |
# File 'lib/vbs/requests/invalid_request_error.rb', line 8 def initialize(json_schema_errors) @errors = json_schema_errors = json_schema_errors.pluck(:message) super() end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/vbs/requests/invalid_request_error.rb', line 6 def errors @errors end |