cause property

Object? cause
final

An optional source that caused the exception.

Could be another exception or error instance, or a String object.

Implementation

final Object? cause;