Exception: Rev::BadRequestError
- Defined in:
- lib/rev-api/exceptions.rb
Overview
400 BadRequest. Response body contains API error code and optional details
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Code of the validation error.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
Constructor Details
#initialize(message, code) ⇒ BadRequestError
Returns a new instance of BadRequestError.
12 13 14 15 |
# File 'lib/rev-api/exceptions.rb', line 12 def initialize(, code) super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Code of the validation error
8 9 10 |
# File 'lib/rev-api/exceptions.rb', line 8 def code @code end |