show message when there is error in submit or remove approvals

This commit is contained in:
amirrezaghabeli
2025-09-06 14:10:49 +03:30
parent 762b6d98fd
commit dad572af60
6 changed files with 137 additions and 88 deletions
+9 -9
View File
@@ -21,7 +21,7 @@ class FetchDataException extends AppException {
FetchDataException([String? message, int? statusCode, originalError])
: super(
message ?? 'Error During Communication: ',
'Network Error',
'Network Error : ',
statusCode,
originalError,
);
@@ -31,7 +31,7 @@ class AuthenticationException extends AppException {
AuthenticationException([String? message, int? statusCode, originalError])
: super(
message ?? 'Authentication Failed.',
'Auth Error: ',
'Auth Error : ',
statusCode,
originalError,
);
@@ -41,7 +41,7 @@ class NetworkConnectionException extends AppException {
NetworkConnectionException([String? message, originalError])
: super(
message ?? 'No internet connection available.',
'Connection Error: ',
'Connection Error : ',
null,
originalError,
);
@@ -51,7 +51,7 @@ class TimeoutException extends AppException {
TimeoutException([String? message, originalError])
: super(
message ?? 'Request timed out.',
'Timeout Error: ',
'Timeout Error : ',
null,
originalError,
);
@@ -61,7 +61,7 @@ class ServerException extends AppException {
ServerException([String? message, int? statusCode, originalError])
: super(
message ?? 'Server error occurred.',
'Server Error: ',
'Server Error : ',
statusCode,
originalError,
);
@@ -71,7 +71,7 @@ class BadRequestException extends AppException {
BadRequestException([String? message, int? statusCode, originalError])
: super(
message ?? 'Bad request.',
'Bad Request Error: ',
'Bad Request Error : ',
statusCode,
originalError,
);
@@ -81,7 +81,7 @@ class NotFoundException extends AppException {
NotFoundException([String? message, int? statusCode, originalError])
: super(
message ?? 'Resource not found.',
'Not Found Error: ',
'Not Found Error : ',
statusCode,
originalError,
);
@@ -91,7 +91,7 @@ class ForbiddenException extends AppException {
ForbiddenException([String? message, int? statusCode, originalError])
: super(
message ?? 'Access forbidden.',
'Forbidden Error: ',
'Forbidden Error : ',
statusCode,
originalError,
);
@@ -101,7 +101,7 @@ class RateLimitException extends AppException {
RateLimitException([String? message, int? statusCode, originalError])
: super(
message ?? 'Rate limit exceeded.',
'Rate Limit Error: ',
'Rate Limit Error : ',
statusCode,
originalError,
);