class Sentry::ErrorEvent

ErrorEvent represents error or normal message events.

def add_exception_interface(exception)

@!visibility private
def add_exception_interface(exception)
  if exception.respond_to?(:sentry_context)
    @extra.merge!(exception.sentry_context)
  end
  @exception = Sentry::ExceptionInterface.build(exception: exception, stacktrace_builder: @stacktrace_builder)
end

def add_threads_interface(backtrace: nil, **options)

@!visibility private
def add_threads_interface(backtrace: nil, **options)
  @threads = ThreadsInterface.build(
    backtrace: backtrace,
    stacktrace_builder: @stacktrace_builder,
    **options
  )
end

def to_hash

Returns:
  • (Hash) -
def to_hash
  data = super
  data[:threads] = threads.to_hash if threads
  data[:exception] = exception.to_hash if exception
  data
end