Class: Bosh::Cli::JobPropertyValidator::TemplateError

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/job_property_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job, template_path, exception) ⇒ TemplateError

Returns a new instance of TemplateError.

Parameters:



122
123
124
125
126
127
# File 'lib/cli/job_property_validator.rb', line 122

def initialize(job, template_path, exception)
  @job = job
  @template_path = template_path
  @exception = exception
  @line = exception.backtrace.first.split(":")[1]
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



116
117
118
# File 'lib/cli/job_property_validator.rb', line 116

def exception
  @exception
end

#jobObject (readonly)

Returns the value of attribute job.



114
115
116
# File 'lib/cli/job_property_validator.rb', line 114

def job
  @job
end

#lineObject (readonly)

Returns the value of attribute line.



117
118
119
# File 'lib/cli/job_property_validator.rb', line 117

def line
  @line
end

#template_pathObject (readonly)

Returns the value of attribute template_path.



115
116
117
# File 'lib/cli/job_property_validator.rb', line 115

def template_path
  @template_path
end