Exception: OpenAPIParser::InvalidPattern

Inherits:
OpenAPIError
  • Object
show all
Defined in:
lib/openapi_parser/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(value, pattern, reference) ⇒ InvalidPattern

Returns a new instance of InvalidPattern.



114
115
116
117
118
# File 'lib/openapi_parser/errors.rb', line 114

def initialize(value, pattern, reference)
  super(reference)
  @value = value
  @pattern = pattern
end

Instance Method Details

#messageObject



120
121
122
# File 'lib/openapi_parser/errors.rb', line 120

def message
  "#{@value} isn't match #{@pattern} in #{@reference}"
end