org.apache.slide.common
Class NestedSlideException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.apache.slide.common.SlideException
|
+--org.apache.slide.common.NestedSlideException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MacroException, ObjectIsAlreadyLockedException
- public class NestedSlideException
- extends SlideException
Nested Slide exception.
- Version:
- $Revision: 1.3 $
- Author:
- Remy Maucherat
- See Also:
- Serialized Form
Field Summary |
protected java.util.Vector |
exceptions
Vector of exceptions which have been put in this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
exceptions
protected java.util.Vector exceptions
- Vector of exceptions which have been put in this exception.
NestedSlideException
public NestedSlideException(java.lang.String message)
- Constructor.
addException
public void addException(SlideException exception)
- Add a new nested exception.
- Parameters:
exception
- Exception to be added
enumerateExceptions
public java.util.Enumeration enumerateExceptions()
- Enumerate nested exceptions.
- Returns:
- Enumeration nested exceptions list
getExceptionsCount
public int getExceptionsCount()
- Return the count of nested exceptions.
- Returns:
- int count of nested exceptions
unpackSingleException
public SlideException unpackSingleException()
- Return the count of nested exceptions.
- Returns:
- int count of nested exceptions
isEmpty
public boolean isEmpty()
- Returns true if no exceptions have been put in this exception.
- Returns:
- boolean
toString
public java.lang.String toString()
- Displays the exception message.
- Overrides:
toString
in class java.lang.Throwable
- Returns:
- String exception message