W3cubDocs

/Dart 2

StackTrace class

An interface implemented by all stack trace objects.

A StackTrace is intended to convey information to the user about the call sequence that triggered an exception.

These objects are created by the runtime, it is not possible to create them programmatically.

Constructors

StackTrace()
StackTrace.fromString(String stackTraceString)
factory
Create a StackTrace object from stackTraceString. [...]

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

toString() → String
override
Returns a String representation of the stack trace. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]

Operators

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

Static Properties

currentStackTrace
read-only
Returns a representation of the current stack trace. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/StackTrace-class.html