Package com.adobe.xfa.ut
Class ExceptionBase
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.adobe.xfa.ut.ExceptionBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExFull,ExResourceFailure
An abstract base class for XFA exceptions.
Objects of this class have an associated boolean WasReported property. As architected, this property can be used by the derived classes to mean anything.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a exception object.ExceptionBase(boolean bWasReported) Instantiate a exception object -- the boolean c'tor. -
Method Summary
Modifier and TypeMethodDescriptionabstract intcount()Counts the number of exception objects in the derived class's collection.abstract ExErrItemitem(int n) Pure abstract indexing operator to reference the given n'th exception object in the derived class's collection.abstract voidresolve()Resolves the exception objects in the derived class's collection.booleanGet this object's WasReported property.voidwasReported(boolean bWasReported) Set this object's WasReported property to the given boolean.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExceptionBase
public ExceptionBase()Instantiate a exception object. -
ExceptionBase
public ExceptionBase(boolean bWasReported) Instantiate a exception object -- the boolean c'tor.- Parameters:
bWasReported- set this object's WasReported property to the given boolean.
-
-
Method Details
-
resolve
public abstract void resolve()Resolves the exception objects in the derived class's collection. -
count
public abstract int count()Counts the number of exception objects in the derived class's collection.- Returns:
- the count.
-
item
Pure abstract indexing operator to reference the given n'th exception object in the derived class's collection.- Parameters:
n- the index of the exception object to return. Must be in the range 0 to count() - 1.- Returns:
- the n'th exception object.
-
wasReported
public boolean wasReported()Get this object's WasReported property.- Returns:
- the WasReported property.
-
wasReported
public void wasReported(boolean bWasReported) Set this object's WasReported property to the given boolean.- Parameters:
bWasReported- the new WasReproted property.
-