Exception: MediaTypeOutputNotImplementedError
- Inherits:
-
MediaTypeNotImplementedError
- Object
- StandardError
- DistorteDError
- MediaTypeNotImplementedError
- MediaTypeOutputNotImplementedError
- Defined in:
- lib/distorted-floor/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.
31 32 33 34 35 |
# File 'lib/distorted-floor/error_code.rb', line 31 def initialize(name, type, context) super(name) @type = type @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
30 31 32 |
# File 'lib/distorted-floor/error_code.rb', line 30 def context @context end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
30 31 32 |
# File 'lib/distorted-floor/error_code.rb', line 30 def type @type end |
Instance Method Details
#message ⇒ Object
37 38 39 |
# File 'lib/distorted-floor/error_code.rb', line 37 def "Unable to save #{name} as #{type.to_s} from #{context}" end |