Exception: OpenapiFirst::RequestInvalidError
- Defined in:
- lib/openapi_first/errors.rb
Overview
Raised during request validation if request was invalid
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ ValidatedRequest
readonly
The validated request.
Instance Method Summary collapse
-
#initialize(message, validated_request) ⇒ RequestInvalidError
constructor
A new instance of RequestInvalidError.
Constructor Details
#initialize(message, validated_request) ⇒ RequestInvalidError
Returns a new instance of RequestInvalidError.
15 16 17 18 |
# File 'lib/openapi_first/errors.rb', line 15 def initialize(, validated_request) super() @request = validated_request end |
Instance Attribute Details
#request ⇒ ValidatedRequest (readonly)
Returns The validated request.
21 22 23 |
# File 'lib/openapi_first/errors.rb', line 21 def request @request end |