Exception: OpenapiFirst::ResponseInvalidError

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

Overview

Raised during response validation if request was invalid

Direct Known Subclasses

ResponseNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#responseValidatedResponse (readonly)

Returns The validated response.

Returns:



35
36
37
# File 'lib/openapi_first/errors.rb', line 35

def response
  @response
end