Exception: Norn::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Norn::Error
- Defined in:
- lib/norn/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(message = nil, context: {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, context: {}) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/norn/errors.rb', line 5 def initialize( = nil, context: {}) super() @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/norn/errors.rb', line 3 def context @context end |