Exception: JadeDeserializationException
- Inherits:
-
StandardError
- Object
- StandardError
- JadeDeserializationException
- Defined in:
- jade/jade_exceptions.rb
Overview
A specialised Jade Exception of type JadeSerializationException. This is used when trying to deserialize a JadeObject from string or file and an error occurs.
Instance Attribute Summary collapse
-
#:exception_type(: exception_type) ⇒ Object
The exception type may require use outside of the instance of itself and therefore has an attribute accessor.
-
#exception_type ⇒ Object
The exception type may require use outside of the instance of itself and therefore has an attribute accessor.
Instance Method Summary collapse
-
#initialize ⇒ NilClass
constructor
Overloads the original initialize method of standard error.
Constructor Details
#initialize ⇒ NilClass
Overloads the original initialize method of standard error. Initializes the superclass using the message from the parameter. This helps to provide a more specific exception type.
113 114 115 116 |
# File 'jade/jade_exceptions.rb', line 113 def initialize(msg = 'Failed to deserialize to JadeObject', exception_type = 'JadeDeserializationException') @exception_type = exception_type super(msg) end |
Instance Attribute Details
#:exception_type(: exception_type) ⇒ Object
The exception type may require use outside of the instance of itself and therefore has an attribute accessor.
103 |
# File 'jade/jade_exceptions.rb', line 103 attr_accessor :exception_type |
#exception_type ⇒ Object
The exception type may require use outside of the instance of itself and therefore has an attribute accessor.
103 104 105 |
# File 'jade/jade_exceptions.rb', line 103 def exception_type @exception_type end |