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:



133
134
135
136
137
138
# File 'lib/cli/job_property_validator.rb', line 133

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.



127
128
129
# File 'lib/cli/job_property_validator.rb', line 127

def exception
  @exception
end

#jobObject (readonly)

Returns the value of attribute job.



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

def job
  @job
end

#lineObject (readonly)

Returns the value of attribute line.



128
129
130
# File 'lib/cli/job_property_validator.rb', line 128

def line
  @line
end

#template_pathObject (readonly)

Returns the value of attribute template_path.



126
127
128
# File 'lib/cli/job_property_validator.rb', line 126

def template_path
  @template_path
end