module Airbrake::Backtrace

def best_regexp_for(exception)

Experimental RBS support (using type sampling data from the type_fusion project).

def best_regexp_for: (StandardError exception) -> Regexp

This signature was generated using 8 samples from 1 application.

def best_regexp_for(exception)
  if java_exception?(exception)
    Patterns::JAVA
  elsif oci_exception?(exception)
    Patterns::OCI
  elsif execjs_exception?(exception)
    Patterns::EXECJS
  else
    Patterns::RUBY
  end
end