INNER CODE UNIT · Dart

HttpException

jhflovehqy/flutter_bolg_manage · lib/http/http_exception.dart:8

class HttpException {
  static const int success = 200;
  static const int successNotContent = 204;
  static const int unauthorized = 401;
  static const int forbidden = 403;
  static const int notFound = 404;

  static const netError = 1000;
  static const int parseError = 1001;
  static const int socketError = 1002;
  static const int httpError = 1003;
  static const int timeoutError = 1004;
  static const int cancelError = 1005;
  static const int unknownError = 9999;

  ///错误信息处理
  ///[error] 错误信息类型
  static NetError handleException(DioError error) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…