Exception: SoberSwag::Reporting::InvalidSchemaError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sober_swag/reporting/invalid_schema_error.rb

Overview

Thrown we cannot generate a swagger schema for some reason.

This typically only occurs if you use types that are too complicated. For example, an object type cannot be used as part of the path params.

Direct Known Subclasses

InvalidForPathError, InvalidForQueryError

Defined Under Namespace

Classes: InvalidForPathError, InvalidForQueryError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ InvalidSchemaError

Returns a new instance of InvalidSchemaError.



9
10
11
12
13
# File 'lib/sober_swag/reporting/invalid_schema_error.rb', line 9

def initialize(input)
  @input = input

  super("Could not generate schema for #{input}")
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



15
16
17
# File 'lib/sober_swag/reporting/invalid_schema_error.rb', line 15

def input
  @input
end