XFA4J

com.adobe.xfa.ut
Class ExFull

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.adobe.xfa.ut.ExceptionBase
                  extended by com.adobe.xfa.ut.ExFull
All Implemented Interfaces:
java.io.Serializable

public class ExFull
extends ExceptionBase

An exception class derived from ExceptionBase that simply consists of a collection of exceptions.

Use this class to collect multiple errors when different areas of code need to add detail information to errors as they percolate up from several catch/throw blocks.

See Also:
Serialized Form

Constructor Summary
ExFull(java.lang.Exception e)
          Instantiates an ExFull object with a single exception in its collection whose error message text property is the text of the given Java exception.
 
Method Summary
 int count()
          Counts of the number of exceptions in this object's collection.
 void insert(ExFull source, boolean bAppend)
          Inserts the given ExFull's collection of exceptions into this object's collection.
 void resolve()
          Resolves this object's collection of exceptions, ensuring that any resource text associated with each of the exceptions' resource property has been loaded.
 java.lang.String toString()
          Concatenates all the error message text properties from this object's collection of exceptions.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExFull

public ExFull(java.lang.Exception e)
Instantiates an ExFull object with a single exception in its collection whose error message text property is the text of the given Java exception.

Parameters:
e - the Java exception.
Method Detail

count

public int count()
Counts of the number of exceptions in this object's collection.

Specified by:
count in class ExceptionBase
Returns:
the count.

insert

public void insert(ExFull source,
                   boolean bAppend)
Inserts the given ExFull's collection of exceptions into this object's collection.

Parameters:
source - the ExFull object to copy from.
bAppend - boolean true to append at the end of this object's collection, and false to insert at the beginning of this object's collection. The default is to append at the end.

resolve

public void resolve()
Resolves this object's collection of exceptions, ensuring that any resource text associated with each of the exceptions' resource property has been loaded.

Specified by:
resolve in class ExceptionBase

toString

public java.lang.String toString()
Concatenates all the error message text properties from this object's collection of exceptions.

Overrides:
toString in class java.lang.Throwable
Returns:
the concatenated error message texts. A newline character is appended to each error message texts.

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.