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.



158
159
160
161
162
# File 'lib/openapi_parser/errors.rb', line 158

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

Instance Method Details

#messageObject



164
165
166
# File 'lib/openapi_parser/errors.rb', line 164

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