Exception: OpenAPIParser::MoreThanMaxLength
- Inherits:
-
OpenAPIError
- Object
- StandardError
- OpenAPIError
- OpenAPIParser::MoreThanMaxLength
- Defined in:
- lib/openapi_parser/errors.rb
Instance Method Summary collapse
-
#initialize(value, reference) ⇒ MoreThanMaxLength
constructor
A new instance of MoreThanMaxLength.
- #message ⇒ Object
Constructor Details
#initialize(value, reference) ⇒ MoreThanMaxLength
Returns a new instance of MoreThanMaxLength.
182 183 184 185 |
# File 'lib/openapi_parser/errors.rb', line 182 def initialize(value, reference) super(reference) @value = value end |
Instance Method Details
#message ⇒ Object
187 188 189 |
# File 'lib/openapi_parser/errors.rb', line 187 def "#{@value} cannot be more than max length in #{@reference}" end |