Skip to content

Commit c3a1ccf

Browse files
committed
fix: Add toString to FunctionException
1 parent 22cd12d commit c3a1ccf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/functions_client/lib/src/types.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore_for_file: public_member_api_docs, sort_constructors_first
12
import 'dart:convert';
23
import 'dart:typed_data';
34

@@ -32,4 +33,8 @@ class FunctionException {
3233
final String? reasonPhrase;
3334

3435
FunctionException({required this.status, this.details, this.reasonPhrase});
36+
37+
@override
38+
String toString() =>
39+
'FunctionException(status: $status, details: $details, reasonPhrase: $reasonPhrase)';
3540
}

0 commit comments

Comments
 (0)