File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 11/// An abstract class for identifying the type of Dart errors and exceptions.
22///
3- /// This class provides a contract for implementing error type identification
4- /// in Dart. It's used in scenarios where error types need to be
5- /// determined in obfuscated builds, as [runtimeType] is not reliable in
6- /// such cases.
3+ /// It's used in scenarios where error types need to be determined in obfuscated builds
4+ /// as [runtimeType] is not reliable in such cases.
75///
86/// Implement this class to create custom error type identifiers for errors or exceptions.
97/// that we do not support out of the box.
1210///
1311/// Example:
1412/// ```dart
15- /// class MyErrorTypeIdentifier implements ErrorTypeIdentifier {
13+ /// class MyExceptionTypeIdentifier implements ExceptionTypeIdentifier {
1614/// @override
17- /// String? identifyType(dynamic error ) {
18- /// if (error is MyCustomError) return 'MyCustomError';
15+ /// String? identifyType(dynamic throwable ) {
16+ /// if (throwable is MyCustomError) return 'MyCustomError';
1917/// return null;
2018/// }
2119/// }
You can’t perform that action at this time.
0 commit comments