Exception: OpenAPIParser::InvalidPattern
- Inherits:
-
OpenAPIError
- Object
- StandardError
- OpenAPIError
- OpenAPIParser::InvalidPattern
- Defined in:
- lib/openapi_parser/errors.rb
Instance Method Summary collapse
-
#initialize(value, pattern, reference) ⇒ InvalidPattern
constructor
A new instance of InvalidPattern.
- #message ⇒ Object
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
#message ⇒ Object
120 121 122 |
# File 'lib/openapi_parser/errors.rb', line 120 def "#{@value} isn't match #{@pattern} in #{@reference}" end |