Exception: SoberSwag::Reporting::InvalidSchemaError
- Inherits:
-
StandardError
- Object
- StandardError
- SoberSwag::Reporting::InvalidSchemaError
- 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
Defined Under Namespace
Classes: InvalidForPathError, InvalidForQueryError
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(input) ⇒ InvalidSchemaError
constructor
A new instance of InvalidSchemaError.
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
#input ⇒ Object (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 |