Class ExceptionBase

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ExFull, ExResourceFailure

    public abstract class ExceptionBase
    extends java.lang.RuntimeException
    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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionBase()
      Instantiate a exception object.
      ExceptionBase​(boolean bWasReported)
      Instantiate a exception object -- the boolean c'tor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract int count()
      Counts the number of exception objects in the derived class's collection.
      abstract ExErrItem item​(int n)
      Pure abstract indexing operator to reference the given n'th exception object in the derived class's collection.
      abstract void resolve()
      Resolves the exception objects in the derived class's collection.
      boolean wasReported()
      Get this object's WasReported property.
      void wasReported​(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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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

        public abstract ExErrItem item​(int n)
        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.