Methods
- A
- F
- N
- R
- S
- T
- U
Attributes
[R] | backtrace_cleaner | |
[R] | exception | |
[R] | file | |
[R] | line_number | |
[R] | wrapped_causes |
Class Public methods
new(backtrace_cleaner, exception)
Link
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 41 def initialize(backtrace_cleaner, exception) @backtrace_cleaner = backtrace_cleaner @exception = exception @wrapped_causes = wrapped_causes_for(exception, backtrace_cleaner) expand_backtrace if exception.is_a?(SyntaxError) || exception.cause.is_a?(SyntaxError) end
status_code_for_exception(class_name)
Link
Instance Public methods
application_trace()
Link
framework_trace()
Link
full_trace()
Link
rescue_template()
Link
source_extracts()
Link
source_to_show_id()
Link
status_code()
Link
trace_to_show()
Link
traces()
Link
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 77 def traces application_trace_with_ids = [] framework_trace_with_ids = [] full_trace_with_ids = [] full_trace.each_with_index do |trace, idx| trace_with_id = { exception_object_id: @exception.object_id, id: idx, trace: trace } if application_trace.include?(trace) application_trace_with_ids << trace_with_id else framework_trace_with_ids << trace_with_id end full_trace_with_ids << trace_with_id end { "Application Trace" => application_trace_with_ids, "Framework Trace" => framework_trace_with_ids, "Full Trace" => full_trace_with_ids } end