Payment Error Message and Beneficiary Page

This commit is contained in:
2025-08-11 17:03:02 +05:30
parent e7bbab13ba
commit 8ae26e2f18
16 changed files with 111 additions and 47 deletions

View File

@@ -21,8 +21,8 @@ class NeftService {
throw Exception(
'NEFT transaction failed with status code: ${response.statusCode}');
}
} on DioException catch (e) {
throw Exception('Failed to process NEFT transaction: ${e.message}');
} on DioException {
rethrow;
} catch (e) {
throw Exception('An unexpected error occurred: ${e.toString()}');
}

View File

@@ -22,8 +22,8 @@ class RtgsService {
throw Exception(
'RTGS transaction failed with status code: ${response.statusCode}');
}
} on DioException catch (e) {
throw Exception('Failed to process RTGS transaction: ${e.message}');
} on DioException {
rethrow ;
} catch (e) {
throw Exception('An unexpected error occurred: ${e.toString()}');
}