com.jivesoftware.forum
Class PrivateMessageRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jivesoftware.base.JiveException
com.jivesoftware.forum.PrivateMessageRejectedException
- All Implemented Interfaces:
- java.io.Serializable
public class PrivateMessageRejectedException
- extends com.jivesoftware.base.JiveException
Thrown when a private is prevented from being posted. The type of the rejection is
available via the getRejectionType()
method. Valid values are:
-
RECIPIENT_MAILBOX_FULL
-- the message recipient's mailbox is full.
-
SENDER_MAILBOX_FULL
-- the sender's mailbox is full and the user tried
so save a copy of the message to their Sent folder.
-
NOT_ALLOWED
-- the sender was not allowed to send the private message.
- Since:
- 4.0
- See Also:
- Serialized Form
Method Summary |
int |
getRejectionType()
Returns the type of the rejection exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RECIPIENT_MAILBOX_FULL
public static int RECIPIENT_MAILBOX_FULL
SENDER_MAILBOX_FULL
public static int SENDER_MAILBOX_FULL
NOT_ALLOWED
public static int NOT_ALLOWED
PrivateMessageRejectedException
public PrivateMessageRejectedException(int rejectionType)
- Creates a new PrivateMessageRejectedException.
- Parameters:
rejectionType
- the type of the rejection.
getRejectionType
public int getRejectionType()
- Returns the type of the rejection exception.
- Returns:
- the rejection type.
Copyright © 1999-2006 Jive Software.