getStacktrace

Gets the Stacktrace object attached to the error report. The stacktrace can be filtered or otherwise modified as needed.

This behavior is useful when there is a designated error handling function within application code, and error reports are being grouped by that function on your Bugsnag dashboard. The frames of a stacktrace are ordered such that index 0 is the frame most recently called.

setGroupingHash

Sets the grouping hash of the error report. All errors with the same
grouping hash are grouped together. This is an advanced usage of the
library and mis-using it will cause your errors not to group properly
in your dashboard.

$report->setGroupingHash($report->getName().$report->getMessage());

setMessage

Set the error message sent in the error report

$report->setMessage('This was a mistake.');

setMetaData

Set additional metadata to send with this error report, or replace existing metadata.