ATTRIBUTES

updateEnabled

Whether it is permitted (and supported) to call $self->updateErrorReport

Defaults to false. Set to true if you implemented this functionality and want to enable it.

listEnabled

Whether it is permitted (and supported) to call $self->listReports

Defaults to false. Set to true if you implemented this functionality and want to enable it.

maxSerializedSize

The maximum size in bytes allowed for a serialized report. Reports will be repeatedly trimmed until they are below this size.

maxCloneDepth

When trimmed, this setting determines how deeply to clone a given node of the report. The report is repeatedly cloned with shallower and shallower depths until it fits within the maxSerializedSize. The trimming attempts start with this depth, and step smaller if needed.

METHODS

$id= $obj->saveErrorReport( RapidApp::ErrorReport )

Save an exception and its details.

Returns an ID used to look up the exception later. On failure, logs the reason and returns undef. Does not throw an exception.

(we could have the exception-saver throw an exception, but that might not be too helpful)

$err= $obj->loadErrorReport( $id )

Load an exception by the given id string. If possible, a copy of the original (or even the original) RapidApp exception will be returned.

If the error does not exist, or cannot be loaded, throws an exception.

\@list= $obj->updateErrorReport( $errId, $report )

Overwrite report ID with the new report object

\@list= $obj->listReports( \%args ) my $list= $obj->listExceptions(); # all my $list= $obj->listExceptions({ offset => $ofs, limit => $count }); # count, starting from ofs