Exception: Amsi::Error::BadRequest
- Inherits:
-
Base
- Object
- StandardError
- Base
- Amsi::Error::BadRequest
- Defined in:
- lib/amsi/error/bad_request.rb
Overview
Raised when an AMSI request has an error node in the contents. This generally happens when one of the parameters in a section other than the auth section is invalid.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ BadRequest
constructor
A new instance of BadRequest.
Constructor Details
#initialize(errors) ⇒ BadRequest
Returns a new instance of BadRequest.
12 13 14 15 |
# File 'lib/amsi/error/bad_request.rb', line 12 def initialize(errors) super(errors.map(&:message).join('; ')) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
9 10 11 |
# File 'lib/amsi/error/bad_request.rb', line 9 def errors @errors end |