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.



233
234
235
236
# File 'lib/openapi_parser/errors.rb', line 233

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

Instance Method Details

#messageObject



238
239
240
# File 'lib/openapi_parser/errors.rb', line 238

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