public class ServiceException extends ReplyException
| Constructor and Description | 
|---|
ServiceException(int failureCode,
                String message)
Create a ServiceException. 
 | 
ServiceException(int failureCode,
                String message,
                JsonObject debugInfo)  | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> AsyncResult<T> | 
fail(int failureCode,
    String message)
Create a failed Future containing a ServiceException. 
 | 
static <T> AsyncResult<T> | 
fail(int failureCode,
    String message,
    JsonObject debugInfo)
Create a failed Future containing a ServiceException. 
 | 
JsonObject | 
getDebugInfo()
Get the Debugging information provided to this ServiceException 
 | 
failureCode, failureType, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ServiceException(int failureCode,
                        String message)
failureCode - The failure code.message - The failure message.public ServiceException(int failureCode,
                        String message,
                        JsonObject debugInfo)
public JsonObject getDebugInfo()
public static <T> AsyncResult<T> fail(int failureCode, String message)
T - The type of the AsyncResult.failureCode - The failure code.message - The failure message.public static <T> AsyncResult<T> fail(int failureCode, String message, JsonObject debugInfo)
T - The type of the AsyncResult.failureCode - The failure code.message - The failure message.debugInfo - The debug info.Copyright © 2020 Eclipse. All rights reserved.