Class: OFlow::ValidateError::Problem

Inherits:
Object
  • Object
show all
Defined in:
lib/oflow/errors.rb

Constant Summary

'link_error'
MISSING_ERROR =
'missing_link_error'
INPUT_ERROR =
'input_link_error'

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Problem) initialize(task_name, kind, msg)

Returns a new instance of Problem



67
68
69
70
71
# File 'lib/oflow/errors.rb', line 67

def initialize(task_name, kind, msg)
  @task_name = task_name
  @kind = kind
  @message = msg
end

Instance Attribute Details

- (Object) kind (readonly)

Returns the value of attribute kind



64
65
66
# File 'lib/oflow/errors.rb', line 64

def kind
  @kind
end

- (Object) message (readonly)

Returns the value of attribute message



65
66
67
# File 'lib/oflow/errors.rb', line 65

def message
  @message
end

- (Object) task_name (readonly)

Returns the value of attribute task_name



63
64
65
# File 'lib/oflow/errors.rb', line 63

def task_name
  @task_name
end

Instance Method Details

- (Object) to_s Also known as: inpsect



73
74
75
# File 'lib/oflow/errors.rb', line 73

def to_s()
  "#{@task_name}: #{@message}"
end