Secure iNet Factory

com.jscape.inet.pop
Class PopException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jscape.inet.pop.PopException
All Implemented Interfaces:
ExceptionWrapper, java.io.Serializable

public class PopException
extends java.lang.Exception
implements ExceptionWrapper

PopException is thrown by many methods of Pop class. The methods are masking various exception types into PopException, but the event message will be propagated.
In case that the cause for throwing PopException is not exception but invalid client operation or server response, PopException message will contain textual part of server response.

See Also:
Serialized Form

Constructor Summary
PopException(java.lang.String message)
          Creates exception with specified message string.
PopException(java.lang.String message, java.lang.Exception exception)
          PopException is thrown by many methods of Pop class.
 
Method Summary
 java.lang.Exception getException()
          Gets source of this exception.
 
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
 

Constructor Detail

PopException

public PopException(java.lang.String message)
Creates exception with specified message string.

Parameters:
message - thrown if I/O or POP3 error occurs

PopException

public PopException(java.lang.String message,
                    java.lang.Exception exception)
PopException is thrown by many methods of Pop class. The methods are masking various exception types into PopException, but the event message will be propagated. In case that the cause for throwing PopException is not exception but invalid client operation or server response, PopException message will contain textual part of server response.

Parameters:
message - the message of exception
exception - the exception which caused this exception
Method Detail

getException

public java.lang.Exception getException()
Gets source of this exception.

Specified by:
getException in interface ExceptionWrapper
Returns:
the source of this exception

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved