Package io.nem.sdk.openapi.vertx.invoker
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.nem.sdk.openapi.vertx.invoker.ApiException
-
- All Implemented Interfaces:
java.io.Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-01-01T18:24:23.294947664-03:00[America/Argentina/Buenos_Aires]") public class ApiException extends java.lang.Exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()ApiException(int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)ApiException(int code, java.lang.String message)ApiException(int code, java.lang.String message, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)ApiException(java.lang.String message)ApiException(java.lang.String message, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)ApiException(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders)ApiException(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)ApiException(java.lang.Throwable throwable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> io.vertx.core.AsyncResult<T>fail(int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)static <T> io.vertx.core.AsyncResult<T>fail(int failureCode, java.lang.String message)static <T> io.vertx.core.AsyncResult<T>fail(java.lang.String message)static <T> io.vertx.core.AsyncResult<T>fail(java.lang.String message, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)static <T> io.vertx.core.AsyncResult<T>fail(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders)static <T> io.vertx.core.AsyncResult<T>fail(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)static <T> io.vertx.core.AsyncResult<T>fail(java.lang.Throwable throwable)intgetCode()Get the HTTP status code.java.lang.StringgetResponseBody()Get the HTTP response body.io.vertx.core.MultiMapgetResponseHeaders()Get the HTTP response headers.
-
-
-
Constructor Detail
-
ApiException
public ApiException()
-
ApiException
public ApiException(java.lang.Throwable throwable)
-
ApiException
public ApiException(java.lang.String message)
-
ApiException
public ApiException(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
ApiException
public ApiException(java.lang.String message, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
ApiException
public ApiException(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders)
-
ApiException
public ApiException(int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
ApiException
public ApiException(int code, java.lang.String message)
-
ApiException
public ApiException(int code, java.lang.String message, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
-
Method Detail
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(int failureCode, java.lang.String message)
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(java.lang.Throwable throwable)
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(java.lang.String message)
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders)
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(java.lang.String message, java.lang.Throwable throwable, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(java.lang.String message, int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
fail
public static <T> io.vertx.core.AsyncResult<T> fail(int code, io.vertx.core.MultiMap responseHeaders, java.lang.String responseBody)
-
getCode
public int getCode()
Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
public io.vertx.core.MultiMap getResponseHeaders()
Get the HTTP response headers.- Returns:
- A map of list of string
-
getResponseBody
public java.lang.String getResponseBody()
Get the HTTP response body.- Returns:
- Response body in the form of string
-
-