Skip to content

Commit

Permalink
notHandle to @deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Jul 5, 2023
1 parent 73313ec commit 7768708
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/src/gal_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,22 @@ 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) {
accessDenied => 'ACCESS_DENIED',
notEnoughSpace => 'NOT_ENOUGH_SPACE',
notSupportedFormat => 'NOT_SUPPORTED_FORMAT',
unexpected => 'UNEXPECTED',
notHandle => 'NOT_HANDLE',
_ => 'NOT_HANDLE',
};

String get message => switch (this) {
accessDenied => 'You do not have permission to access the gallery app.',
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.',
};
}

0 comments on commit 7768708

Please sign in to comment.