Exception: Swagger::InvalidDefinition

Inherits:
StandardError
  • Object
show all
Defined in:
lib/swagger.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidDefinition



12
13
14
15
# File 'lib/swagger.rb', line 12

def initialize(errors)
  @errors = errors
  super("The Swagger definition is invalid. The following errors were detected: #{errors.inspect}")
end