Parent

Class Index [+]

Quicksearch

ActionDispatch::ExceptionWrapper

Attributes

env[R]
exception[R]

Public Class Methods

new(env, exception) click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 27
27:     def initialize(env, exception)
28:       @env = env
29:       @exception = original_exception(exception)
30:     end

Public Instance Methods

application_trace() click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 40
40:     def application_trace
41:       clean_backtrace(:silent)
42:     end
framework_trace() click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 44
44:     def framework_trace
45:       clean_backtrace(:noise)
46:     end
full_trace() click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 48
48:     def full_trace
49:       clean_backtrace(:all)
50:     end
rescue_template() click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 32
32:     def rescue_template
33:       @@rescue_templates[@exception.class.name]
34:     end
status_code() click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 36
36:     def status_code
37:       Rack::Utils.status_code(@@rescue_responses[@exception.class.name])
38:     end

Private Instance Methods

backtrace_cleaner() click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 74
74:     def backtrace_cleaner
75:       @backtrace_cleaner ||= @env['action_dispatch.backtrace_cleaner']
76:     end
clean_backtrace(*args) click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 66
66:     def clean_backtrace(*args)
67:       if backtrace_cleaner
68:         backtrace_cleaner.clean(@exception.backtrace, *args)
69:       else
70:         @exception.backtrace
71:       end
72:     end
original_exception(exception) click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 54
54:     def original_exception(exception)
55:       if registered_original_exception?(exception)
56:         exception.original_exception
57:       else
58:         exception
59:       end
60:     end
registered_original_exception?(exception) click to toggle source
    # File lib/action_dispatch/middleware/exception_wrapper.rb, line 62
62:     def registered_original_exception?(exception)
63:       exception.respond_to?(:original_exception) && @@rescue_responses.has_key?(exception.original_exception.class.name)
64:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.