com.zerjio.JIRC
Class ErrorMessage
java.lang.Object
com.zerjio.JIRC.IRCMessage
com.zerjio.JIRC.ErrorMessage
- public class ErrorMessage
- extends IRCMessage
This class represents an internal error tipically trown when the connection
has ended and a message has been tried to be send.
It is not received from the server. It is a false message that has been created with the
pourpose of knowing when a user has send the quit command, and allow the client to close all
channel windows, etc.
Constructor Summary |
ErrorMessage(java.lang.String prefix,
java.lang.String params)
Constructs an Error message with a prefix and its parameters.
|
Method Summary |
java.lang.String |
getErrorMessage()
Returns the error message. |
Methods inherited from class com.zerjio.JIRC.IRCMessage |
asString, asStringWithoutPrefix, getCommand, getHost, getMustBeDiscarded, getNick, getParams, getPrefix, getUsedCount, getUser, isUsed, markAsUsed, mustBeDiscarded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorMessage
public ErrorMessage(java.lang.String prefix,
java.lang.String params)
- Constructs an Error message with a prefix and its parameters.
The
command
will be Error
.
- Parameters:
prefix
- The Error message prefix.params
- The Error message parameters.
getErrorMessage
public java.lang.String getErrorMessage()
- Returns the error message.
- Returns:
- The error message.