org.apache.james.mime4j
Class MimeIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.james.mime4j.MimeIOException
All Implemented Interfaces:
java.io.Serializable

public class MimeIOException
extends java.io.IOException

A wrapper class based on IOException for MIME protocol exceptions.

This exception is used to signal a MimeException in methods that only permit IOException to be thrown.

The cause of a MimeIOException is always a MimeException therefore.

See Also:
Serialized Form

Constructor Summary
MimeIOException(MimeException cause)
          Constructs an IO exception based on MimeException.
 
Method Summary
 MimeException getCause()
          Returns the MimeException that caused this MimeIOException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MimeIOException

public MimeIOException(MimeException cause)
Constructs an IO exception based on MimeException.

Parameters:
cause - the cause.
Method Detail

getCause

public MimeException getCause()
Returns the MimeException that caused this MimeIOException.

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause of this MimeIOException.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.