public class ReplyException extends VertxException
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.
Modifier | Constructor and Description |
---|---|
|
ReplyException(ReplyFailure failureType)
Create a ReplyException
|
|
ReplyException(ReplyFailure failureType,
int failureCode,
String message)
Create a ReplyException
|
|
ReplyException(ReplyFailure failureType,
int failureCode,
String message,
boolean noStackTrace)
Create a ReplyException with all attributes.
|
protected |
ReplyException(ReplyFailure failureType,
int failureCode,
String message,
Throwable cause,
boolean noStackTrace)
Create a ReplyException with all attributes, including cause.
Default ReplyExceptionMessageCodec doesn't support Cause!This ctor is meant to be used for extension, together with a custom codec. |
|
ReplyException(ReplyFailure failureType,
String message)
Create a ReplyException
|
Modifier and Type | Method and Description |
---|---|
int |
failureCode()
Get the failure code for the message
|
ReplyFailure |
failureType()
Get the failure type for the message
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ReplyException(ReplyFailure failureType, int failureCode, String message, boolean noStackTrace)
failureType
- the failure typefailureCode
- the failure code (e.g. 404)message
- the failure messageprotected ReplyException(ReplyFailure failureType, int failureCode, String message, Throwable cause, boolean noStackTrace)
ReplyExceptionMessageCodec
doesn't support Cause!failureType
- the failure typefailureCode
- the failure code (e.g. 404)message
- the failure messagepublic ReplyException(ReplyFailure failureType, int failureCode, String message)
failureType
- the failure typefailureCode
- the failure codemessage
- the failure messagepublic ReplyException(ReplyFailure failureType, String message)
failureType
- the failure typemessage
- the failure messagepublic ReplyException(ReplyFailure failureType)
failureType
- the failure typepublic ReplyFailure failureType()
public int failureCode()
Copyright © 2024 Eclipse. All rights reserved.