replaced print with log in neft_service.dart
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:developer';
|
||||||
|
|
||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:kmobile/data/models/neft_response.dart';
|
import 'package:kmobile/data/models/neft_response.dart';
|
||||||
import 'package:kmobile/data/models/neft_transaction.dart';
|
import 'package:kmobile/data/models/neft_transaction.dart';
|
||||||
@@ -23,7 +25,7 @@ class NeftService {
|
|||||||
'NEFT transaction failed with status code: ${response.statusCode}');
|
'NEFT transaction failed with status code: ${response.statusCode}');
|
||||||
}
|
}
|
||||||
} on DioException {
|
} on DioException {
|
||||||
print('DioException Occured');
|
log('DioException Occured');
|
||||||
rethrow;
|
rethrow;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw Exception('An unexpected error occurred: ${e.toString()}');
|
throw Exception('An unexpected error occurred: ${e.toString()}');
|
||||||
|
Reference in New Issue
Block a user