Parent

Class/Module Index [+]

Quicksearch

ActionDispatch::ExceptionWrapper

Attributes

env[R]
exception[R]
file[R]
line_number[R]

Public Class Methods

new(env, exception) click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 32
def initialize(env, exception)
  @env = env
  @exception = original_exception(exception)
end
status_code_for_exception(class_name) click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 57
def self.status_code_for_exception(class_name)
  Rack::Utils.status_code(@@rescue_responses[class_name])
end

Public Instance Methods

application_trace() click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 45
def application_trace
  clean_backtrace(:silent)
end
framework_trace() click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 49
def framework_trace
  clean_backtrace(:noise)
end
full_trace() click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 53
def full_trace
  clean_backtrace(:all)
end
rescue_template() click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 37
def rescue_template
  @@rescue_templates[@exception.class.name]
end
source_extract() click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 61
def source_extract
  if application_trace && trace = application_trace.first
    file, line, _ = trace.split(":")
    @file = file
    @line_number = line.to_i
    source_fragment(@file, @line_number)
  end
end
status_code() click to toggle source
# File lib/action_dispatch/middleware/exception_wrapper.rb, line 41
def status_code
  self.class.status_code_for_exception(@exception.class.name)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.