org.apache.james.imapserver
Class MailboxException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.apache.james.imapserver.MailboxException
All Implemented Interfaces:
java.io.Serializable

public class MailboxException
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
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
MailboxException(java.lang.String message)
          Construct a new MailboxException instance.
MailboxException(java.lang.String message, java.lang.String aStatus)
          Construct a new MailBoxException instance.
MailboxException(java.lang.String message, java.lang.String aStatus, java.lang.String aServer)
          Construct a new MailBoxException instance.
 
Method Summary
 java.lang.String getRemoteServer()
           
 java.lang.String getStatus()
           
 boolean isRemote()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALREADY_EXISTS_LOCALLY

public static final java.lang.String ALREADY_EXISTS_LOCALLY

ALREADY_EXISTS_REMOTELY

public static final java.lang.String ALREADY_EXISTS_REMOTELY

IF_CREATED_LOCAL

public static final java.lang.String IF_CREATED_LOCAL

IF_CREATED_REMOTE

public static final java.lang.String IF_CREATED_REMOTE

NOT_LOCAL

public static final java.lang.String NOT_LOCAL

LOCAL_BUT_DELETED

public static final java.lang.String LOCAL_BUT_DELETED

status

protected java.lang.String status

remoteServer

protected java.lang.String remoteServer
Constructor Detail

MailboxException

public MailboxException(java.lang.String message)
Construct a new MailboxException instance.
Parameters:
message - The detail message for this exception (mandatory).

MailboxException

public MailboxException(java.lang.String message,
                        java.lang.String aStatus)
Construct a new MailBoxException instance.
Parameters:
message - The detail message for this exception (mandatory).
aStatus - String constant indicating condition

MailboxException

public MailboxException(java.lang.String message,
                        java.lang.String aStatus,
                        java.lang.String aServer)
Construct a new MailBoxException instance.
Parameters:
message - The detail message for this exception (mandatory).
aStatus - String constant indicating condition
sServer - String indicating another server where Mailbox should be.
Method Detail

getStatus

public java.lang.String getStatus()

getRemoteServer

public java.lang.String getRemoteServer()

isRemote

public boolean isRemote()


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.