Exception: Bade::Renderer::LoadError

Inherits:
Bade::Runtime::RuntimeError show all
Defined in:
lib/bade/renderer.rb

Instance Attribute Summary collapse

Attributes inherited from Bade::Runtime::RuntimeError

#print_locations_warning, #template_backtrace

Instance Method Summary collapse

Methods inherited from Bade::Runtime::RuntimeError

#__formatted_backtrace, #cause, process_locations, #to_s, wrap_existing_error

Constructor Details

#initialize(loading_path, reference_path, msg, template_backtrace = []) ⇒ LoadError

Returns a new instance of LoadError.

Parameters:

  • loading_path (String)

    currently loaded path

  • reference_path (String)

    reference file from which is load performed

  • msg (String)

    standard message



25
26
27
28
29
# File 'lib/bade/renderer.rb', line 25

def initialize(loading_path, reference_path, msg, template_backtrace = [])
  super(msg, template_backtrace)
  @loading_path = loading_path
  @reference_path = reference_path
end

Instance Attribute Details

#loading_pathString (readonly)

Returns:



15
16
17
# File 'lib/bade/renderer.rb', line 15

def loading_path
  @loading_path
end

#reference_pathString (readonly)

Returns:



19
20
21
# File 'lib/bade/renderer.rb', line 19

def reference_path
  @reference_path
end