Exception: Swagger::InvalidDefinition

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

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidDefinition

Returns a new instance of InvalidDefinition.



9
10
11
12
# File 'lib/swagger.rb', line 9

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