类 ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alibaba.graphscope.interactive.openapi.ApiException
-
- 所有已实现的接口:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class ApiException extends Exception
ApiException class.
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ApiException()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.ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)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.StringgetMessage()Get the exception message including HTTP response data.StringgetResponseBody()Get the HTTP response body.Map<String,List<String>>getResponseHeaders()Get the HTTP response headers.
-
-
-
构造器详细资料
-
ApiException
public ApiException()
Constructor for ApiException.
-
ApiException
public ApiException(Throwable throwable)
Constructor for ApiException.
- 参数:
throwable- aThrowableobject
-
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.
-
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
public ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)Constructor for ApiException.
- 参数:
code- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(int code, String message)Constructor for ApiException.
- 参数:
code- HTTP status codemessage- aStringobject
-
-
方法详细资料
-
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
-
-