Class: Unravel::NoErrorHandler
- Inherits:
-
Object
- Object
- Unravel::NoErrorHandler
- Defined in:
- lib/unravel.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, ex) ⇒ NoErrorHandler
constructor
A new instance of NoErrorHandler.
- #message ⇒ Object
Constructor Details
#initialize(name, ex) ⇒ NoErrorHandler
Returns a new instance of NoErrorHandler.
27 28 29 30 |
# File 'lib/unravel.rb', line 27 def initialize(name, ex) @name = name @exception = ex end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
26 27 28 |
# File 'lib/unravel.rb', line 26 def exception @exception end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/unravel.rb', line 25 def name @name end |
Instance Method Details
#message ⇒ Object
32 33 34 |
# File 'lib/unravel.rb', line 32 def "Achievement #{name.inspect} is not declared to handle exceptions of type: #{ex.class}" end |