Exception: OpenAPIParser::InvalidEmailFormat

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ InvalidEmailFormat

Returns a new instance of InvalidEmailFormat.



170
171
172
173
# File 'lib/openapi_parser/errors.rb', line 170

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

Instance Method Details

#messageObject



175
176
177
# File 'lib/openapi_parser/errors.rb', line 175

def message
  "#{@reference} email address format does not match value: #{@value}"
end