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.
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
#message ⇒ Object
164 165 166 |
# File 'lib/openapi_parser/errors.rb', line 164 def "#{@value} isn't match #{@pattern} in #{@reference}" end |