java.io.Serializable
public class ChannelException
extends java.lang.Exception
getCause()
getFaultyMembers()
method. This way, an application will always know if a message was delivered successfully or not.Modifier and Type | Class | Description |
---|---|---|
static class |
ChannelException.FaultyMember |
Title: FaultyMember class
|
Modifier and Type | Field | Description |
---|---|---|
protected static ChannelException.FaultyMember[] |
EMPTY_LIST |
Empty list to avoid reinstantiating lists
|
Constructor | Description |
---|---|
ChannelException() |
Constructor, creates a ChannelException
|
ChannelException(java.lang.String message) |
Constructor, creates a ChannelException with an error message
|
ChannelException(java.lang.String message,
java.lang.Throwable cause) |
Constructor, creates a ChannelException with an error message and a cause
|
ChannelException(java.lang.Throwable cause) |
Constructor, creates a ChannelException with a cause
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
addFaultyMember(ChannelException.FaultyMember mbr) |
Adds a faulty member
|
int |
addFaultyMember(ChannelException.FaultyMember[] mbrs) |
Adds a list of faulty members
|
boolean |
addFaultyMember(Member mbr,
java.lang.Exception x) |
Adds a faulty member, and the reason the member failed.
|
ChannelException.FaultyMember[] |
getFaultyMembers() |
Returns an array of members that failed and the reason they failed.
|
java.lang.String |
getMessage() |
Returns the message for this exception
|
protected static final ChannelException.FaultyMember[] EMPTY_LIST
public ChannelException()
Exception()
public ChannelException(java.lang.String message)
message
- The error messageException(String)
public ChannelException(java.lang.String message, java.lang.Throwable cause)
message
- The error messagecause
- ThrowableException(String,Throwable)
public ChannelException(java.lang.Throwable cause)
cause
- ThrowableException(Throwable)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()
public boolean addFaultyMember(Member mbr, java.lang.Exception x)
mbr
- Memberx
- Exceptiontrue
if the member was addedpublic int addFaultyMember(ChannelException.FaultyMember[] mbrs)
mbrs
- FaultyMember[]public boolean addFaultyMember(ChannelException.FaultyMember mbr)
mbr
- FaultyMembertrue
if the member was addedpublic ChannelException.FaultyMember[] getFaultyMembers()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.