Methods
- A
- F
- N
- R
- S
- T
Attributes
[R] | env | |
[R] | exception | |
[R] | file | |
[R] | line_number |
Class Public methods
new(env, exception)
Link
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 33 def initialize(env, exception) @env = env @exception = original_exception(exception) expand_backtrace if exception.is_a?(SyntaxError) || exception.try(:original_exception).try(: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 60 def traces appplication_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) appplication_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" => appplication_trace_with_ids, "Framework Trace" => framework_trace_with_ids, "Full Trace" => full_trace_with_ids } end