de.kosi.chat
Class ChatException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--de.kosi.chat.ChatException
- All Implemented Interfaces:
- java.io.Serializable
- public class ChatException
- extends java.lang.Exception
This exception is thrown if a user tries to speak to a channel that
he is not member of or only a read only user.
ChangeLog:
$Log: ChatException.java,v $
Revision 1.1.1.1 2001/04/29 18:05:16 jiriki
Imported sources from zola.
Revision 1.2 2001/02/09 21:09:05 login
- updated documentation !!
- Version:
- $Revision: 1.1.1.1 $ ($Date: 2001/04/29 18:05:16 $)
- Author:
- Timo, Niklas, Ole
- See Also:
- Serialized Form
Field Summary |
static java.lang.String[] |
MESSAGES
This array constant provides English String representations of
the exception types. |
static int |
NOT_MEMBER_OF_CHANNEL
This constant indicates the exception that someone talks to a
channel that he isn't member of. |
static int |
READ_ONLY_MEMBER
This conatsnt indicates the exception that someone talks to a
channel where he is a read only user. |
Constructor Summary |
ChatException(int type)
This creates a new instance of this class. |
Method Summary |
int |
getType()
Returns the type of the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NOT_MEMBER_OF_CHANNEL
public static final int NOT_MEMBER_OF_CHANNEL
- This constant indicates the exception that someone talks to a
channel that he isn't member of.
READ_ONLY_MEMBER
public static final int READ_ONLY_MEMBER
- This conatsnt indicates the exception that someone talks to a
channel where he is a read only user.
MESSAGES
public static final java.lang.String[] MESSAGES
- This array constant provides English String representations of
the exception types.
ChatException
public ChatException(int type)
- This creates a new instance of this class. The range of the
argument is not testet!!
- Parameters:
type
- The type of the exception. Must be either
NOT_MEMBER_OF_CHANNEL or READ_ONLY_MEMBER, but no check for this
is implemented!!
getType
public int getType()
- Returns the type of the exception.
- Returns:
- The type of the exception.