Class: OFlow::ValidateError::Problem
- Inherits:
-
Object
- Object
- OFlow::ValidateError::Problem
- Defined in:
- lib/oflow/errors.rb
Constant Summary collapse
- LINK_ERROR =
'link_error'- MISSING_ERROR =
'missing_link_error'- INPUT_ERROR =
'input_link_error'
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#task_name ⇒ Object
readonly
Returns the value of attribute task_name.
Instance Method Summary collapse
-
#initialize(task_name, kind, msg) ⇒ Problem
constructor
A new instance of Problem.
- #to_s ⇒ Object (also: #inpsect)
Constructor Details
#initialize(task_name, kind, msg) ⇒ Problem
Returns a new instance of Problem.
59 60 61 62 63 |
# File 'lib/oflow/errors.rb', line 59 def initialize(task_name, kind, msg) @task_name = task_name @kind = kind = msg end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
56 57 58 |
# File 'lib/oflow/errors.rb', line 56 def kind @kind end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
57 58 59 |
# File 'lib/oflow/errors.rb', line 57 def end |
#task_name ⇒ Object (readonly)
Returns the value of attribute task_name.
55 56 57 |
# File 'lib/oflow/errors.rb', line 55 def task_name @task_name end |
Instance Method Details
#to_s ⇒ Object Also known as: inpsect
65 66 67 |
# File 'lib/oflow/errors.rb', line 65 def to_s() "#{@task_name}: #{@message}" end |