From e072ff74c71858ea3c9ede3361d2cdf710b22388 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 25 Jul 2024 07:53:28 +0900 Subject: [PATCH] fix(functions_client): Add `toString` to `FunctionException` (#985) * fix: Add toString to FunctionException * Update packages/functions_client/lib/src/types.dart Co-authored-by: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com> * delete unnecessary ignore line --------- Co-authored-by: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com> --- packages/functions_client/lib/src/types.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)'; }