Exception: OpenAPIParser::MoreThanMaxLength

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ MoreThanMaxLength

Returns a new instance of MoreThanMaxLength.



205
206
207
208
# File 'lib/openapi_parser/errors.rb', line 205

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

Instance Method Details

#messageObject



210
211
212
# File 'lib/openapi_parser/errors.rb', line 210

def message
  "#{@reference} #{@value} is longer than max length"
end