Exception: OpenapiFirst::ResponseInvalidError
- Defined in:
- lib/openapi_first/errors.rb
Overview
Raised during response validation if request was invalid
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ ValidatedResponse
readonly
The validated response.
Instance Method Summary collapse
-
#initialize(message, validated_response) ⇒ ResponseInvalidError
constructor
A new instance of ResponseInvalidError.
Constructor Details
#initialize(message, validated_response) ⇒ ResponseInvalidError
Returns a new instance of ResponseInvalidError.
29 30 31 32 |
# File 'lib/openapi_first/errors.rb', line 29 def initialize(, validated_response) super() @response = validated_response end |
Instance Attribute Details
#response ⇒ ValidatedResponse (readonly)
Returns The validated response.
35 36 37 |
# File 'lib/openapi_first/errors.rb', line 35 def response @response end |