com.jscape.inet.imap
Class ImapException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jscape.inet.imap.ImapException
- All Implemented Interfaces:
- ExceptionWrapper, java.io.Serializable
public class ImapException
- extends java.lang.Exception
- implements ExceptionWrapper
ImapException is thrown by many methods of Imap class. The methods are
masking various exception types into ImapException, but the event message
will be propagated.
- See Also:
- Serialized Form
Constructor Summary |
ImapException(java.lang.String message)
Creates exception with specified message string. |
ImapException(java.lang.String message,
java.lang.Exception exception)
ImapException is thrown by many methods of Imap class. |
Method Summary |
java.lang.Exception |
getException()
Gets Exception which caused this ImapException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImapException
public ImapException(java.lang.String message)
- Creates exception with specified message string.
- Parameters:
message
- a message describing error
ImapException
public ImapException(java.lang.String message,
java.lang.Exception exception)
- ImapException is thrown by many methods of Imap class. The methods are
masking various exception types into ImapException, but the event
message will be propagated. In case that the cause for throwing
ImapException is not exception but invalid client operation or server
response, ImapException message will contain textual part of server
response.
- Parameters:
message
- the message of exceptionexception
- the exception which caused this exception
getException
public java.lang.Exception getException()
- Gets Exception which caused this ImapException.
- Specified by:
getException
in interface ExceptionWrapper
- Returns:
- an Exception or null if not found
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved