getCause method

  1. @override
Throwable? getCause()
override

The cause of this exception, if any.

It defaults to the exception itself if not provided.

Implementation

@override
Throwable? getCause() => cause;