程序包 com.easemob.im

类 ApiException

所有已实现的接口:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]") public class ApiException extends Exception

ApiException class.

另请参阅:
  • 构造器详细资料

    • ApiException

      public ApiException()

      Constructor for ApiException.

    • ApiException

      public ApiException(Throwable throwable)

      Constructor for ApiException.

      参数:
      throwable - a Throwable object
    • ApiException

      public ApiException(String message)

      Constructor for ApiException.

      参数:
      message - the error message
    • ApiException

      public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)

      Constructor for ApiException.

      参数:
      message - the error message
      throwable - a Throwable object
      code - HTTP status code
      responseHeaders - a Map of HTTP response headers
      responseBody - the response body
    • ApiException

      public ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)

      Constructor for ApiException.

      参数:
      message - the error message
      code - HTTP status code
      responseHeaders - a Map of HTTP response headers
      responseBody - the response body
    • ApiException

      public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)

      Constructor for ApiException.

      参数:
      message - the error message
      throwable - a Throwable object
      code - HTTP status code
      responseHeaders - a Map of HTTP response headers
    • ApiException

      public ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)

      Constructor for ApiException.

      参数:
      code - HTTP status code
      responseHeaders - a Map of HTTP response headers
      responseBody - the response body
    • ApiException

      public ApiException(int code, String message)

      Constructor for ApiException.

      参数:
      code - HTTP status code
      message - a String object
    • ApiException

      public ApiException(int code, String message, Map<String,List<String>> responseHeaders, String responseBody)

      Constructor for ApiException.

      参数:
      code - HTTP status code
      message - the error message
      responseHeaders - a Map of HTTP response headers
      responseBody - the response body
  • 方法详细资料

    • getCode

      public int getCode()
      Get the HTTP status code.
      返回:
      HTTP status code
    • getResponseHeaders

      public Map<String,List<String>> getResponseHeaders()
      Get the HTTP response headers.
      返回:
      A map of list of string
    • getResponseBody

      public String getResponseBody()
      Get the HTTP response body.
      返回:
      Response body in the form of string
    • getMessage

      public String getMessage()
      Get the exception message including HTTP response data.
      覆盖:
      getMessage 在类中 Throwable
      返回:
      The exception message