Package com.icegreen.greenmail.store
Class FolderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.icegreen.greenmail.store.FolderException
-
- All Implemented Interfaces:
java.io.Serializable
public class FolderException extends java.lang.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 java.lang.String
ALREADY_EXISTS_LOCALLY
static java.lang.String
ALREADY_EXISTS_REMOTELY
static java.lang.String
IF_CREATED_LOCAL
static java.lang.String
IF_CREATED_REMOTE
static java.lang.String
LOCAL_BUT_DELETED
static java.lang.String
NOT_LOCAL
protected java.lang.String
remoteServer
protected java.lang.String
status
-
Constructor Summary
Constructors Constructor Description FolderException(java.lang.String message)
Construct a newMailboxException
instance.FolderException(java.lang.String message, java.lang.String aStatus)
Construct a newMailBoxException
instance.FolderException(java.lang.String message, java.lang.String aStatus, java.lang.String aServer)
Construct a newMailBoxException
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRemoteServer()
java.lang.String
getResponseCode()
java.lang.String
getStatus()
boolean
isRemote()
void
setResponseCode(java.lang.String responseCode)
-
-
-
Field Detail
-
ALREADY_EXISTS_LOCALLY
public static final java.lang.String ALREADY_EXISTS_LOCALLY
- See Also:
- Constant Field Values
-
ALREADY_EXISTS_REMOTELY
public static final java.lang.String ALREADY_EXISTS_REMOTELY
- See Also:
- Constant Field Values
-
IF_CREATED_LOCAL
public static final java.lang.String IF_CREATED_LOCAL
- See Also:
- Constant Field Values
-
IF_CREATED_REMOTE
public static final java.lang.String IF_CREATED_REMOTE
- See Also:
- Constant Field Values
-
NOT_LOCAL
public static final java.lang.String NOT_LOCAL
- See Also:
- Constant Field Values
-
LOCAL_BUT_DELETED
public static final java.lang.String LOCAL_BUT_DELETED
- See Also:
- Constant Field Values
-
status
protected java.lang.String status
-
remoteServer
protected java.lang.String remoteServer
-
-
Constructor Detail
-
FolderException
public FolderException(java.lang.String message)
Construct a newMailboxException
instance.- Parameters:
message
- The detail message for this exception (mandatory).
-
FolderException
public FolderException(java.lang.String message, java.lang.String aStatus)
Construct a newMailBoxException
instance.- Parameters:
message
- The detail message for this exception (mandatory).aStatus
- String constant indicating condition
-
FolderException
public FolderException(java.lang.String message, java.lang.String aStatus, java.lang.String aServer)
Construct a newMailBoxException
instance.- Parameters:
message
- The detail message for this exception (mandatory).aStatus
- String constant indicating conditionaServer
- String indicating another server where Mailbox should be.
-
-