Class: CI::Queue::FileLoadError

Inherits:
Error
  • Object
show all
Defined in:
lib/ci/queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path, original_error) ⇒ FileLoadError

Returns a new instance of FileLoadError.



33
34
35
36
37
38
# File 'lib/ci/queue.rb', line 33

def initialize(file_path, original_error)
  @file_path = file_path
  @original_error = original_error
  super("Failed to load #{file_path}: #{original_error.class}: #{original_error.message}")
  set_backtrace(original_error.backtrace)
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



31
32
33
# File 'lib/ci/queue.rb', line 31

def file_path
  @file_path
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



31
32
33
# File 'lib/ci/queue.rb', line 31

def original_error
  @original_error
end