feat: base project

This commit is contained in:
efrilm
2025-08-12 15:18:38 +07:00
parent 2df3bb118a
commit cb5250459e
102 changed files with 3453 additions and 333 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);
}
}