org.inxar.affirm
Class ProclamationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.inxar.affirm.ProclamationException
All Implemented Interfaces:
java.io.Serializable

public class ProclamationException
extends java.lang.Exception

ProclamationException instances are thrown by Proclamation objects to indicate that at least one error has occurred while verifying the input using applied Affirmation implementations. The exception acts mainly as a carrier of two objects -- the Data and the Errata containers, which hold the partitioned 'good' and 'bad' data, respectively.

See Also:
Serialized Form

Field Summary
 Data data
          Reference to the rescued Data object.
 Errata errata
          Reference to the rescued Errata object.
 
Constructor Summary
ProclamationException(Data data, Errata errata)
          Builds a new ProclamationException with the given Data and Errata objects.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public Data data
Reference to the rescued Data object.

errata

public Errata errata
Reference to the rescued Errata object.
Constructor Detail

ProclamationException

public ProclamationException(Data data,
                             Errata errata)
Builds a new ProclamationException with the given Data and Errata objects. If either argument is null, the instance will switch over to an empty implementation. Thus, the references of the ProclamationException.data and ProclamationException.errata fields are guaranteed to never be null, though the containers that live there may be empty.