Exception: DoctorSwagger::Parameter::InvalidType
- Inherits:
-
StandardError
- Object
- StandardError
- DoctorSwagger::Parameter::InvalidType
- Defined in:
- lib/doctor_swagger/parameter.rb
Instance Method Summary collapse
-
#initialize(bad_type) ⇒ InvalidType
constructor
A new instance of InvalidType.
Constructor Details
#initialize(bad_type) ⇒ InvalidType
Returns a new instance of InvalidType.
5 6 7 |
# File 'lib/doctor_swagger/parameter.rb', line 5 def initialize(bad_type) @message = "The type of '#{bad_type}' is not valid. Choose from #{ALLOWED_TYPES.inspect}" end |