Exception: JadeException
- Inherits:
-
StandardError
- Object
- StandardError
- JadeException
- Defined in:
- jade/jade_exceptions.rb
Overview
A generic Jade Exception of type JadeException Thrown when Jade does not have a specific instance of the error
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.
26 27 28 29 |
# File 'jade/jade_exceptions.rb', line 26 def initialize(msg = 'Jade exception occurred', exception_type = 'JadeException') @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.
16 |
# File 'jade/jade_exceptions.rb', line 16 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.
16 17 18 |
# File 'jade/jade_exceptions.rb', line 16 def exception_type @exception_type end |