org.apache.james.mailbox
Class MailboxNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.mail.MessagingException
              extended by org.apache.james.mailbox.MailboxException
                  extended by org.apache.james.mailbox.MailboxNotFoundException
All Implemented Interfaces:
java.io.Serializable

public class MailboxNotFoundException
extends MailboxException

Indicates that the failure is caused by a reference to a mailbox which does not exist.

See Also:
Serialized Form

Constructor Summary
MailboxNotFoundException(MailboxPath mailboxPath)
           
MailboxNotFoundException(java.lang.String mailboxName)
           
 
Method Summary
 java.lang.String getMailboxName()
          Gets the name of the mailbox which cannot be found.
 
Methods inherited from class javax.mail.MessagingException
getCause, getNextException, setNextException, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailboxNotFoundException

public MailboxNotFoundException(java.lang.String mailboxName)
Parameters:
mailboxName - name of the mailbox, not null

MailboxNotFoundException

public MailboxNotFoundException(MailboxPath mailboxPath)
Parameters:
mailboxPath - name of the mailbox, not null
Method Detail

getMailboxName

public final java.lang.String getMailboxName()
Gets the name of the mailbox which cannot be found.

Returns:
name or null when only mailbox ID is known


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.