diff --git a/packages/functions_client/lib/src/types.dart b/packages/functions_client/lib/src/types.dart index 68d03208..c5f734f7 100644 --- a/packages/functions_client/lib/src/types.dart +++ b/packages/functions_client/lib/src/types.dart @@ -31,5 +31,10 @@ class FunctionException { final dynamic details; final String? reasonPhrase; - FunctionException({required this.status, this.details, this.reasonPhrase}); + const FunctionException( + {required this.status, this.details, this.reasonPhrase}); + + @override + String toString() => + 'FunctionException(status: $status, details: $details, reasonPhrase: $reasonPhrase)'; }