Exception: OpenapiFirst::RequestInvalidError

Inherits:
Error
  • Object
show all
Defined in:
lib/openapi_first/errors.rb

Overview

Raised during request validation if request was invalid

Direct Known Subclasses

NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, validated_request)
  super(message)
  @request = validated_request
end

Instance Attribute Details

#requestValidatedRequest (readonly)

Returns The validated request.

Returns:



21
22
23
# File 'lib/openapi_first/errors.rb', line 21

def request
  @request
end