Top Description Fields Constructors Methods
io.vertx.core.eventbus

public Class ReplyException

extends VertxException
Class Inheritance
Imports
io.vertx.core.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

Field Summary

Modifier and TypeField and Description
private final int
private final ReplyFailure

Constructor Summary

AccessConstructor and Description
public
ReplyException(ReplyFailure
the failure type
failureType
,
int
the failure code (e.g. 404)
failureCode
,
String
the failure message
message
,
boolean noStackTrace)

Create a ReplyException with all attributes.

protected
ReplyException(ReplyFailure
the failure type
failureType
,
int
the failure code (e.g. 404)
failureCode
,
String
the failure message
message
,
Throwable cause, boolean noStackTrace)

Create a ReplyException with all attributes, including cause.

public
ReplyException(ReplyFailure
the failure type
failureType
,
int
the failure code
failureCode
,
String
the failure message
message
)

Create a ReplyException

public
ReplyException(ReplyFailure
the failure type
failureType
,
String
the failure message
message
)

Create a ReplyException

public
ReplyException(ReplyFailure
the failure type
failureType
)

Create a ReplyException

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the failure code
failureCode
()

Get the failure code for the message

public ReplyFailure

Returns:

the failure type
failureType
()

Get the failure type for the message

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

failureCodeback to summary
private final int failureCode
failureTypeback to summary
private final ReplyFailure failureType

Constructor Detail

ReplyExceptionback to summary
public ReplyException(ReplyFailure failureType, int failureCode, String message, boolean noStackTrace)

Create a ReplyException with all attributes.

Parameters
failureType:ReplyFailure

the failure type

failureCode:int

the failure code (e.g. 404)

message:String

the failure message

ReplyExceptionback to summary
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.

Parameters
failureType:ReplyFailure

the failure type

failureCode:int

the failure code (e.g. 404)

message:String

the failure message

ReplyExceptionback to summary
public ReplyException(ReplyFailure failureType, int failureCode, String message)

Create a ReplyException

Parameters
failureType:ReplyFailure

the failure type

failureCode:int

the failure code

message:String

the failure message

ReplyExceptionback to summary
public ReplyException(ReplyFailure failureType, String message)

Create a ReplyException

Parameters
failureType:ReplyFailure

the failure type

message:String

the failure message

ReplyExceptionback to summary
public ReplyException(ReplyFailure failureType)

Create a ReplyException

Parameters
failureType:ReplyFailure

the failure type

Method Detail

failureCodeback to summary
public int failureCode()

Get the failure code for the message

Returns:int

the failure code

failureTypeback to summary
public ReplyFailure failureType()

Get the failure type for the message

Returns:ReplyFailure

the failure type

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override