Package io.vertx.serviceproxy
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
 
 public class ServiceException extends ReplyException An Exception to be returned from Service implementations.- Author:
- Dan O'Reilly
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ServiceException(int failureCode, String message)Create a ServiceException.ServiceException(int failureCode, String message, JsonObject debugInfo)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Future<T>fail(int failureCode, String message)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.JsonObjectgetDebugInfo()Get the Debugging information provided to this ServiceException- 
Methods inherited from class io.vertx.core.eventbus.ReplyExceptionfailureCode, failureType, toString
 - 
Methods inherited from class io.vertx.core.VertxExceptionnoStackTrace, noStackTrace, noStackTrace
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
Constructor Detail- 
ServiceExceptionpublic ServiceException(int failureCode, String message)Create a ServiceException.- Parameters:
- failureCode- The failure code.
- message- The failure message.
 
 - 
ServiceExceptionpublic ServiceException(int failureCode, String message, JsonObject debugInfo)
 
- 
 - 
Method Detail- 
getDebugInfopublic JsonObject getDebugInfo() Get the Debugging information provided to this ServiceException- Returns:
- The debug info.
 
 - 
failpublic static <T> Future<T> fail(int failureCode, String message) 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.
 
 - 
failpublic static <T> Future<T> fail(int failureCode, String message, JsonObject debugInfo) 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.
 
 
- 
 
-