Exception: MediaTypeNotFoundError
- Inherits:
-
StandardDistorteDError
- Object
- StandardError
- StandardDistorteDError
- MediaTypeNotFoundError
- Defined in:
- lib/distorted/error_code.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ MediaTypeNotFoundError
constructor
A new instance of MediaTypeNotFoundError.
- #message ⇒ Object
Constructor Details
#initialize(name) ⇒ MediaTypeNotFoundError
Returns a new instance of MediaTypeNotFoundError.
39 40 41 42 |
# File 'lib/distorted/error_code.rb', line 39 def initialize(name) super @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
38 39 40 |
# File 'lib/distorted/error_code.rb', line 38 def name @name end |
Instance Method Details
#message ⇒ Object
44 45 46 |
# File 'lib/distorted/error_code.rb', line 44 def "Failed to detect media type for #{name}" end |