Methods
- A
- F
- N
- R
- S
- T
Attributes
[R] | backtrace_cleaner | |
[R] | exception | |
[R] | file | |
[R] | line_number |
Class Public methods
new(backtrace_cleaner, exception)
Link
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 35 def initialize(backtrace_cleaner, exception) @backtrace_cleaner = backtrace_cleaner @exception = original_exception(exception) 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
status_code()
Link
traces()
Link
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 62 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 = { 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