CrashContext class final

What a CrashReporter is told: the error, where it was thrown, and the record the log kept of it.

One object, so a minor can hand a reporter more — the frame the error came out of, the plugin that threw it — without breaking a reporter written against 1.0.

Constructors

CrashContext({required Object error, required StackTrace stackTrace, required LogRecord record})
What a crash reporter is told of error, thrown at stackTrace, with the record the log kept. Made by EngineLog.reportCrash.
const

Properties

error → Object
What was thrown.
final
hashCode → int
The hash code for this object.
no setterinherited
record → LogRecord
The record EngineLog.reportCrash kept of it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace
Where it was thrown.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited