build method
dynamic
build()
Implementation
build() {
switch (dioError.response?.statusCode) {
case HttpStatus.unauthorized:
_exception = UnauthorizedError(dioError.response?.data['message']);
break;
case HttpStatus.notFound:
_exception = NotFoundError(dioError.response?.data['message']);
break;
}
return _exception;
}