Serializes the exception, i.e. returns a list of items that can cross thread boundaries.
@override List serialize() => List.unmodifiable([ _$typeMarker, message, _stackTrace?.toString(), ]);