Exception: Liquor::HostError

Inherits:
Error show all
Defined in:
lib/liquor/diagnostics.rb

Instance Attribute Summary collapse

Attributes inherited from Diagnostic

#location, #raw_message

Instance Method Summary collapse

Methods inherited from Error

#error?

Methods inherited from Diagnostic

#as_json, #decorate, #error?, #tabify_column, #to_json

Constructor Details

#initialize(message, original_error, host_backtrace, location = nil) ⇒ HostError


137
138
139
140
141
142
143
144
145
146
# File 'lib/liquor/diagnostics.rb', line 137

def initialize(message, original_error, host_backtrace, location=nil)
  @original_error = original_error
  @host_backtrace = host_backtrace

  if message.nil?
    message = "#{original_error.class}: #{original_error.message}"
  end

  super(message, location)
end

Instance Attribute Details

#host_backtraceObject (readonly)

Returns the value of attribute host_backtrace


135
136
137
# File 'lib/liquor/diagnostics.rb', line 135

def host_backtrace
  @host_backtrace
end

#original_errorObject (readonly)

Returns the value of attribute original_error


135
136
137
# File 'lib/liquor/diagnostics.rb', line 135

def original_error
  @original_error
end