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.
74 75 76 77 78 |
# File 'lib/oflow/errors.rb', line 74 def initialize(task_name, kind, msg) @task_name = task_name @kind = kind @message = msg end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
71 72 73 |
# File 'lib/oflow/errors.rb', line 71 def kind @kind end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
72 73 74 |
# File 'lib/oflow/errors.rb', line 72 def @message end |
#task_name ⇒ Object (readonly)
Returns the value of attribute task_name.
70 71 72 |
# File 'lib/oflow/errors.rb', line 70 def task_name @task_name end |
Instance Method Details
#to_s ⇒ Object Also known as: inpsect
80 81 82 |
# File 'lib/oflow/errors.rb', line 80 def to_s() "#{@task_name}: #{@message}" end |