程序包 com.easemob.im
类 ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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.
- 另请参阅:
-
构造器概要
构造器构造器说明Constructor for ApiException.ApiException(int code, String message) Constructor for ApiException.ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.Constructor for ApiException.ApiException(String message) Constructor for ApiException.ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) Constructor for ApiException.ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.ApiException(Throwable throwable) Constructor for ApiException. -
方法概要
修饰符和类型方法说明intgetCode()Get the HTTP status code.Get the exception message including HTTP response data.Get the HTTP response body.Get the HTTP response headers.
-
构造器详细资料
-
ApiException
public ApiException()Constructor for ApiException.
-
ApiException
Constructor for ApiException.
- 参数:
throwable- aThrowableobject
-
ApiException
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.
-
ApiException
public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.
- 参数:
message- the error messagecode- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) Constructor for ApiException.
-
ApiException
Constructor for ApiException.
- 参数:
code- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
Constructor for ApiException.
- 参数:
code- HTTP status codemessage- aStringobject
-
ApiException
public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.
- 参数:
code- HTTP status codemessage- the error messageresponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
-
方法详细资料
-
getCode
public int getCode()Get the HTTP status code.- 返回:
- HTTP status code
-
getResponseHeaders
Get the HTTP response headers.- 返回:
- A map of list of string
-
getResponseBody
Get the HTTP response body.- 返回:
- Response body in the form of string
-
getMessage
Get the exception message including HTTP response data.- 覆盖:
getMessage在类中Throwable- 返回:
- The exception message
-