Package com.icegreen.greenmail.store
Class FolderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.icegreen.greenmail.store.FolderException
-
- All Implemented Interfaces:
Serializable
public class FolderException extends Exception
Thrown on an inappropriate attempt to reference a mailbox. Includes attempting to create a mailbox that already exists and attempting to open a mailbox that does not exist. If status is ALREADY_EXISTS_REMOTELY or IF_CREATED_REMOTE then field remoteServer should be set to the url of the remote server, formatted for Mailbox Referral.- Version:
- 0.1 on 14 Dec 2000
- Author:
- Charles Benett
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringALREADY_EXISTS_LOCALLYstatic StringALREADY_EXISTS_REMOTELYstatic StringIF_CREATED_LOCALstatic StringIF_CREATED_REMOTEstatic StringLOCAL_BUT_DELETEDstatic StringNOT_LOCAL
-
Constructor Summary
Constructors Constructor Description FolderException(Exception ex)Constructor wrapping original exception.FolderException(String message)Construct a newMailboxExceptioninstance.FolderException(String message, Exception ex)Constructor wrapping original exception.FolderException(String message, String aStatus)Construct a newMailBoxExceptioninstance.FolderException(String message, String aStatus, String aServer)Construct a newMailBoxExceptioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRemoteServer()StringgetResponseCode()StringgetStatus()booleanisRemote()voidsetResponseCode(String responseCode)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
ALREADY_EXISTS_LOCALLY
public static final String ALREADY_EXISTS_LOCALLY
- See Also:
- Constant Field Values
-
ALREADY_EXISTS_REMOTELY
public static final String ALREADY_EXISTS_REMOTELY
- See Also:
- Constant Field Values
-
IF_CREATED_LOCAL
public static final String IF_CREATED_LOCAL
- See Also:
- Constant Field Values
-
IF_CREATED_REMOTE
public static final String IF_CREATED_REMOTE
- See Also:
- Constant Field Values
-
NOT_LOCAL
public static final String NOT_LOCAL
- See Also:
- Constant Field Values
-
LOCAL_BUT_DELETED
public static final String LOCAL_BUT_DELETED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FolderException
public FolderException(String message)
Construct a newMailboxExceptioninstance.- Parameters:
message- The detail message for this exception (mandatory).
-
FolderException
public FolderException(Exception ex)
Constructor wrapping original exception.- Parameters:
ex- The cause.
-
FolderException
public FolderException(String message, Exception ex)
Constructor wrapping original exception.- Parameters:
message- The detail message for this exception (mandatory).ex- The cause.
-
FolderException
public FolderException(String message, String aStatus)
Construct a newMailBoxExceptioninstance.- Parameters:
message- The detail message for this exception (mandatory).aStatus- String constant indicating condition
-
FolderException
public FolderException(String message, String aStatus, String aServer)
Construct a newMailBoxExceptioninstance.- Parameters:
message- The detail message for this exception (mandatory).aStatus- String constant indicating conditionaServer- String indicating another server where Mailbox should be.
-
-