base project

This commit is contained in:
efrilm
2025-10-23 22:16:53 +07:00
parent 6612cef24f
commit 4fee7c4bb7
52 changed files with 3319 additions and 229 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);
}
}