base project

This commit is contained in:
efrilm
2025-08-27 12:43:25 +07:00
parent 1573a38857
commit 13d07caa74
108 changed files with 3560 additions and 349 deletions
@@ -0,0 +1,13 @@
import 'package:dio/dio.dart';
import '../errors/not_found_error.dart';
class NotFoundErrorInterceptor extends Interceptor {
@override
void onError(DioException err, ErrorInterceptorHandler handler) {
if (err.response?.statusCode == 404) {
return super.onError(NotFoundError(err, null), handler);
}
super.onError(err, handler);
}
}