Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.core.VertxException
io.vertx.core.eventbus.ReplyException
io.vertx.serviceproxy.ServiceException
- All Implemented Interfaces:
Serializable
An Exception to be returned from Service implementations.
- Author:
- Dan O'Reilly
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceException(int failureCode, String message) Create a ServiceException.ServiceException(int failureCode, String message, JsonObject debugInfo) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Future<T> Create a failed Future containing a ServiceException.static <T> Future<T> fail(int failureCode, String message, JsonObject debugInfo) Create a failed Future containing a ServiceException.Get the Debugging information provided to this ServiceExceptionMethods inherited from class ReplyException
failureCode, failureType, toStringMethods inherited from class VertxException
noStackTrace, noStackTrace, noStackTraceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ServiceException
Create a ServiceException.- Parameters:
failureCode- The failure code.message- The failure message.
-
ServiceException
-
-
Method Details
-
getDebugInfo
Get the Debugging information provided to this ServiceException- Returns:
- The debug info.
-
fail
Create a failed Future containing a ServiceException.- Type Parameters:
T- The type of the AsyncResult.- Parameters:
failureCode- The failure code.message- The failure message.- Returns:
- A failed Future containing the ServiceException.
-
fail
Create a failed Future containing a ServiceException.- Type Parameters:
T- The type of the AsyncResult.- Parameters:
failureCode- The failure code.message- The failure message.debugInfo- The debug info.- Returns:
- A failed Future containing the ServiceException.
-