com.jfimagine.utils.exception
Class ListException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.jfimagine.utils.exception.ListException
All Implemented Interfaces:
java.io.Serializable

public class ListException
extends java.lang.Exception

This class implements an exception which can wrapped a lower-level exception.

Version:
$Revision: 1.1 $
Author:
CookieMaker
See Also:
Serialized Form

Constructor Summary
ListException(java.lang.Exception exception)
          Creates a new ListException wrapping another exception, and with no detail message.
ListException(java.lang.String message)
          Creates a ListException with the specified detail message.
ListException(java.lang.String message, java.lang.Exception exception)
          Creates a new ListException wrapping another list operation exception, and with a detail message.
 
Method Summary
 java.lang.Exception getException()
          Gets the wrapped exception.
 java.lang.Exception getRootCause()
          Retrieves (recursively) the root cause 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListException

public ListException(java.lang.String message,
                     java.lang.Exception exception)
Creates a new ListException wrapping another list operation exception, and with a detail message.

Parameters:
message - the detail message.
exception - the wrapped exception.

ListException

public ListException(java.lang.String message)
Creates a ListException with the specified detail message.

Parameters:
message - the detail message.

ListException

public ListException(java.lang.Exception exception)
Creates a new ListException wrapping another exception, and with no detail message.

Parameters:
exception - the wrapped exception.
Method Detail

getException

public java.lang.Exception getException()
Gets the wrapped exception.

Returns:
the wrapped exception.

getRootCause

public java.lang.Exception getRootCause()
Retrieves (recursively) the root cause exception.

Returns:
the root cause exception.


Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All Rights Reserved.