getCause method

Object? getCause()

The cause of this exception, if any.

It defaults to the exception itself if not provided.

Implementation

Object? getCause() => this;