Exception: RubstApi::RequestValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- RubstApi::RequestValidationError
- Defined in:
- lib/rubst_api/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors, body: nil) ⇒ RequestValidationError
constructor
A new instance of RequestValidationError.
Constructor Details
#initialize(errors, body: nil) ⇒ RequestValidationError
Returns a new instance of RequestValidationError.
33 34 35 36 |
# File 'lib/rubst_api/errors.rb', line 33 def initialize(errors, body: nil) @errors, @body = errors, body super("Request validation failed") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
32 33 34 |
# File 'lib/rubst_api/errors.rb', line 32 def body @body end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
32 33 34 |
# File 'lib/rubst_api/errors.rb', line 32 def errors @errors end |