Class 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
    • Constructor Detail

      • FolderException

        public FolderException​(String message)
        Construct a new MailboxException instance.
        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 new MailBoxException instance.
        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 new MailBoxException instance.
        Parameters:
        message - The detail message for this exception (mandatory).
        aStatus - String constant indicating condition
        aServer - String indicating another server where Mailbox should be.
    • Method Detail

      • getStatus

        public String getStatus()
      • getRemoteServer

        public String getRemoteServer()
      • isRemote

        public boolean isRemote()
      • getResponseCode

        public String getResponseCode()
      • setResponseCode

        public void setResponseCode​(String responseCode)