Package io.vertx.core.eventbus
Class ReplyException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- io.vertx.core.VertxException
- 
- io.vertx.core.eventbus.ReplyException
 
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- ServiceException
 
 public class ReplyException extends VertxException Represents the failure of a message send.If a message was sent specifying a reply handler and the message delivery fails, a failure will be provided to the reply handler and the cause of the failure will be an instance of this. - Author:
- Tim Fox
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description ReplyException(ReplyFailure failureType)Create a ReplyExceptionReplyException(ReplyFailure failureType, int failureCode, String message)Create a ReplyExceptionReplyException(ReplyFailure failureType, int failureCode, String message, boolean noStackTrace)Create a ReplyException with all attributes.protectedReplyException(ReplyFailure failureType, int failureCode, String message, Throwable cause, boolean noStackTrace)Create a ReplyException with all attributes, including cause.
 DefaultReplyExceptionMessageCodecdoesn't support Cause!ReplyException(ReplyFailure failureType, String message)Create a ReplyException
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intfailureCode()Get the failure code for the messageReplyFailurefailureType()Get the failure type for the messageStringtoString()- 
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- 
ReplyExceptionpublic ReplyException(ReplyFailure failureType, int failureCode, String message, boolean noStackTrace) Create a ReplyException with all attributes.- Parameters:
- failureType- the failure type
- failureCode- the failure code (e.g. 404)
- message- the failure message
 
 - 
ReplyExceptionprotected ReplyException(ReplyFailure failureType, int failureCode, String message, Throwable cause, boolean noStackTrace) Create a ReplyException with all attributes, including cause.
 DefaultReplyExceptionMessageCodecdoesn't support Cause!
 This ctor is meant to be used for extension, together with a custom codec.- Parameters:
- failureType- the failure type
- failureCode- the failure code (e.g. 404)
- message- the failure message
 
 - 
ReplyExceptionpublic ReplyException(ReplyFailure failureType, int failureCode, String message) Create a ReplyException- Parameters:
- failureType- the failure type
- failureCode- the failure code
- message- the failure message
 
 - 
ReplyExceptionpublic ReplyException(ReplyFailure failureType, String message) Create a ReplyException- Parameters:
- failureType- the failure type
- message- the failure message
 
 - 
ReplyExceptionpublic ReplyException(ReplyFailure failureType) Create a ReplyException- Parameters:
- failureType- the failure type
 
 
- 
 - 
Method Detail- 
failureTypepublic ReplyFailure failureType() Get the failure type for the message- Returns:
- the failure type
 
 - 
failureCodepublic int failureCode() Get the failure code for the message- Returns:
- the failure code
 
 
- 
 
-