Exception: Operations::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Operations::Error
- Defined in:
- lib/operations.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(message, task = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, task = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/operations.rb', line 6 def initialize , task = nil super() @task = task end |
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
10 11 12 |
# File 'lib/operations.rb', line 10 def task @task end |