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
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFolderException
(String message) Construct a newMailboxException
instance.FolderException
(String message, String aStatus) Construct a newMailBoxException
instance.FolderException
(String message, String aStatus, String aServer) Construct a newMailBoxException
instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ALREADY_EXISTS_LOCALLY
- See Also:
-
ALREADY_EXISTS_REMOTELY
- See Also:
-
IF_CREATED_LOCAL
- See Also:
-
IF_CREATED_REMOTE
- See Also:
-
NOT_LOCAL
- See Also:
-
LOCAL_BUT_DELETED
- See Also:
-
status
-
remoteServer
-
-
Constructor Details
-
FolderException
Construct a newMailboxException
instance.- Parameters:
message
- The detail message for this exception (mandatory).
-
FolderException
Construct a newMailBoxException
instance.- Parameters:
message
- The detail message for this exception (mandatory).aStatus
- String constant indicating condition
-
FolderException
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.
-
-
Method Details
-
getStatus
-
getRemoteServer
-
isRemote
public boolean isRemote() -
getResponseCode
-
setResponseCode
-