FlutterErrorDetails class

Class for information provided to FlutterExceptionHandler callbacks.

See FlutterError.onError.

Inheritance
Implementers

Constructors

FlutterErrorDetails({dynamic exception, StackTrace stack, String library: 'Flutter framework', DiagnosticsNode context, IterableFilter<String> stackFilter, InformationCollector informationCollector, bool silent: false })
Creates a FlutterErrorDetails object with the given arguments setting the object's properties. [...]
const

Properties

context DiagnosticsNode
A human-readable description of where the error was caught (as opposed to where it was thrown). [...]
final
exception → dynamic
The exception. Often this will be an AssertionError, maybe specifically a FlutterError. However, this could be any value at all.
final
informationCollector InformationCollector
A callback which, when called with a StringBuffer will write to that buffer information that could help with debugging the problem. [...]
final
library String
A human-readable brief name describing the library that caught the error message. This is used by the default error handler in the header dumped to the console.
final
silent bool
Whether this error should be ignored by the default error reporting behavior in release mode. [...]
final
stack StackTrace
The stack trace from where the exception was thrown (as opposed to where it was caught). [...]
final
stackFilter IterableFilter<String>
A callback which filters the stack trace. Receives an iterable of strings representing the frames encoded in the way that StackTrace.toString() provides. Should return an iterable of lines to output for the stack. [...]
final
summary DiagnosticsNode
Returns a short (one line) description of the problem that was detected. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
exceptionAsString() String
Converts the exception to a string. [...]
toDiagnosticsNode({String name, DiagnosticsTreeStyle style }) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
override
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this object.
override
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Properties

propertiesTransformers List<DiagnosticPropertiesTransformer>
Transformers to transform DiagnosticsNode in DiagnosticPropertiesBuilder into a more descriptive form. [...]
final