From 7768708b5df9d85c7c0e08ee3f37e7ed37cca564 Mon Sep 17 00:00:00 2001 From: Midori Date: Wed, 5 Jul 2023 22:04:33 +0900 Subject: [PATCH] notHandle to @Deprecated --- lib/src/gal_exception.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/gal_exception.dart b/lib/src/gal_exception.dart index 6ebb4291..d797432c 100644 --- a/lib/src/gal_exception.dart +++ b/lib/src/gal_exception.dart @@ -39,8 +39,7 @@ enum GalExceptionType { /// When an error occurs with unexpected. unexpected, - /// When an error occurs under iOS15. - /// Under iOS 15, it is not possible to get details of errors on saving. + @Deprecated('Use [unexpected] instead. For more info at ') notHandle; String get code => switch (this) { @@ -48,7 +47,7 @@ enum GalExceptionType { notEnoughSpace => 'NOT_ENOUGH_SPACE', notSupportedFormat => 'NOT_SUPPORTED_FORMAT', unexpected => 'UNEXPECTED', - notHandle => 'NOT_HANDLE', + _ => 'NOT_HANDLE', }; String get message => switch (this) { @@ -56,6 +55,6 @@ enum GalExceptionType { notEnoughSpace => 'Not enough space for storage.', notSupportedFormat => 'Unsupported file formats.', unexpected => 'An unexpected error has occurred.', - notHandle => 'An unexpected error has occurred.', + _ => 'An unexpected error has occurred.', }; }