Exception: MediaTypeNotImplementedError
- Inherits:
-
StandardDistorteDError
- Object
- StandardError
- StandardDistorteDError
- MediaTypeNotImplementedError
- Defined in:
- lib/distorted/error_code.rb
Overview
The built-in NotImplementedError is for “when a feature is not implemented on the current platform”, so make our own more appropriate ones.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ MediaTypeNotImplementedError
constructor
A new instance of MediaTypeNotImplementedError.
- #message ⇒ Object
Constructor Details
#initialize(name) ⇒ MediaTypeNotImplementedError
Returns a new instance of MediaTypeNotImplementedError.
14 15 16 17 |
# File 'lib/distorted/error_code.rb', line 14 def initialize(name) super @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/distorted/error_code.rb', line 13 def name @name end |
Instance Method Details
#message ⇒ Object
19 20 21 |
# File 'lib/distorted/error_code.rb', line 19 def "No supported media type for #{name}" end |