Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.util.exception
Class DataValidationException  view DataValidationException download DataValidationException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.thermidor.util.exception.DataValidationException
All Implemented Interfaces:
java.io.Serializable

public abstract class DataValidationException
extends java.lang.Exception

The purpose of the DataValidationException is to provide a base class for data validation exception. The implementation of the class is closely tied to the

Version:
1.0

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  ValidationDescriptor vd
          THe validation descriptor that will detail the validation errors that have lead to this exception being raised.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DataValidationException()
          Construct a default instance of the DatValidationException.
DataValidationException(ValidationDescriptor vd)
          Construct a new instance of the DataValidationException with the specified valdiation descriptor
 
Method Summary
 void printStackTrace()
          The printstackTrace operation prints the stacktrace of the exception to stderr together with the validation descriptor that describes the validation errors.
 void printStackTrace(java.io.PrintStream pw)
          Print the stack trace of this exception an any specified validation descriptor to the specified print strem.
 void printStackTrace(java.io.PrintWriter pw)
          Print the stack trace of this exception an any specified validation descriptor to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vd

private ValidationDescriptor vd
THe validation descriptor that will detail the validation errors that have lead to this exception being raised.

Constructor Detail

DataValidationException

public DataValidationException()
Construct a default instance of the DatValidationException.


DataValidationException

public DataValidationException(ValidationDescriptor vd)
Construct a new instance of the DataValidationException with the specified valdiation descriptor

Method Detail

printStackTrace

public void printStackTrace()
The printstackTrace operation prints the stacktrace of the exception to stderr together with the validation descriptor that describes the validation errors.
    [validation-exception>>
    VALIDATION-FAILURE {
      subject:{
        some GTS subsystem
      }
      description:{
        A fatal database error occured
      }
      errors:{
        error:{ClientSetupInput.accountRef == null or ''}
        error:{ClientSetupInput.primaryClient.dob == null}
      }
    }
    com.thermidor.gts.uk.services,client.InvalidClientDataException:
            at test.que(test.java:36)
            at test.bar(test.java:29)
            at test.foo(test.java:21)
            at test.main(test.java:17)
    <<validation-exception]
    


printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Print the stack trace of this exception an any specified validation descriptor to the specified print writer. see @{link #printStackTrace()} for the format of the stacktrace


printStackTrace

public void printStackTrace(java.io.PrintStream pw)
Print the stack trace of this exception an any specified validation descriptor to the specified print strem. see @{link #printStackTrace()} for the format of the stacktrace