Class: SolidErrors::Occurrence

Inherits:
Record
  • Object
show all
Defined in:
app/models/solid_errors/occurrence.rb

Instance Method Summary collapse

Instance Method Details

#parsed_backtraceArray<{:number, :file, :method => String}>

The parsed exception backtrace. Lines in this backtrace that are from installed gems have the base path for gem installs replaced by “[GEM_ROOT]”, while those in the project have “[PROJECT_ROOT]”.

Returns:

  • (Array<{:number, :file, :method => String}>)


12
13
14
15
16
# File 'app/models/solid_errors/occurrence.rb', line 12

def parsed_backtrace
  return @parsed_backtrace if defined? @parsed_backtrace

  @parsed_backtrace = parse_backtrace(backtrace.split("\n"))
end