Exception: JadeException

Inherits:
StandardError
  • Object
show all
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

Author:

  • Joseph Beck

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNilClass

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.

Parameters:

  • (String, String)


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_typeObject

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