public class VaultException extends Exception
Constructor and Description |
---|
VaultException(String message) |
VaultException(String message,
int code) |
VaultException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode() |
static <T> AsyncResult<T> |
toFailure(String message) |
static <T> AsyncResult<T> |
toFailure(String status,
int code,
String body) |
static <T> AsyncResult<T> |
toFailure(String message,
Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public VaultException(String message)
public VaultException(String message, int code)
public static <T> AsyncResult<T> toFailure(String message, Throwable cause)
public static <T> AsyncResult<T> toFailure(String status, int code, String body)
public static <T> AsyncResult<T> toFailure(String message)
public int getStatusCode()
Copyright © 2021 Eclipse. All rights reserved.