Home » apache-tomcat-6.0.26-src » org.apache » catalina » tribes » [javadoc | source]
public class: ChannelException [javadoc | source]

All Implemented Interfaces:

Channel Exception
A channel exception is thrown when an internal error happens somewhere in the channel.
When a global error happens, the cause can be retrieved using getCause()

If an application is sending a message and some of the recipients fail to receive it, the application can retrieve what recipients failed by using the getFaultyMembers() method. This way, an application will always know if a message was delivered successfully or not.
Nested Class Summary:
public static class  ChannelException.FaultyMember  

Title: FaultyMember class

Description: Represent a failure to a specific member when a message was sent to more than one member

Field Summary
protected static final  FaultyMember[] EMPTY_LIST    Empty list to avoid reinstatiating lists 
Fields inherited from java.lang.Exception:
 public ChannelException() 
 public ChannelException(String message) 
    Constructor, creates a ChannelException with an error message
    Also see:
 public ChannelException(Throwable cause) 
    Constructor, creates a ChannelException with a cause
    cause - Throwable
    Also see:
 public ChannelException(String message,
    Throwable cause) 
    Constructor, creates a ChannelException with an error message and a cause
    message - String
    cause - Throwable
    Also see:
Method from org.apache.catalina.tribes.ChannelException Summary:
addFaultyMember,   addFaultyMember,   addFaultyMember,   getFaultyMembers,   getMessage
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.tribes.ChannelException Detail:
 public int addFaultyMember(FaultyMember[] mbrs) 
    Adds a list of faulty members
 public boolean addFaultyMember(FaultyMember mbr) 
    Adds a faulty member
 public boolean addFaultyMember(Member mbr,
    Exception x) 
    Adds a faulty member, and the reason the member failed.
 public FaultyMember[] getFaultyMembers() 
    Returns an array of members that failed and the reason they failed.
 public String getMessage() 
    Returns the message for this exception