module Airbrake::Backtrace

def self.java_exception?(exception)

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

def self.java_exception?: (StandardError exception) -> untyped

This signature was generated using 7 samples from 1 application.

Returns:
  • (Boolean) -

Parameters:
  • exception (Exception) --
def self.java_exception?(exception)
  if defined?(Java::JavaLang::Throwable) &&
     exception.is_a?(Java::JavaLang::Throwable)
    return true
  end
  return false unless exception.respond_to?(:backtrace)
  (Patterns::JAVA =~ exception.backtrace.first) != nil
end