TF-1008 Create the SetError Handler

This commit is contained in:
Dat PHAM HOANG
2022-11-08 18:17:25 +07:00
committed by Dat H. Pham
parent b3945491fb
commit 05a2be2f07
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,7 @@
import 'package:jmap_dart_client/jmap/core/error/set_error.dart';
import 'package:jmap_dart_client/jmap/core/id.dart';
typedef SetMethodErrors = Map<Id, SetError>;
/// Returns true if handle [setError] successfully and otherwise
typedef SetMethodErrorHandler = bool Function(MapEntry<Id, SetError> setError);