Exception: MediaTypeOutputNotImplementedError
- Inherits:
-
MediaTypeNotImplementedError
- Object
- StandardError
- StandardDistorteDError
- MediaTypeNotImplementedError
- MediaTypeOutputNotImplementedError
- Defined in:
- lib/distorted/error_code.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from MediaTypeNotImplementedError
Instance Method Summary collapse
-
#initialize(name, type, context) ⇒ MediaTypeOutputNotImplementedError
constructor
A new instance of MediaTypeOutputNotImplementedError.
- #message ⇒ Object
Constructor Details
#initialize(name, type, context) ⇒ MediaTypeOutputNotImplementedError
Returns a new instance of MediaTypeOutputNotImplementedError.
26 27 28 29 30 |
# File 'lib/distorted/error_code.rb', line 26 def initialize(name, type, context) super(name) @type = type @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
25 26 27 |
# File 'lib/distorted/error_code.rb', line 25 def context @context end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
25 26 27 |
# File 'lib/distorted/error_code.rb', line 25 def type @type end |
Instance Method Details
#message ⇒ Object
32 33 34 |
# File 'lib/distorted/error_code.rb', line 32 def "Unable to save #{name} as #{type.to_s} from #{context}" end |