java.lang.Object
java.lang.Throwable
java.lang.Exception
com.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 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 |
|
|
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. |
vd
private ValidationDescriptor vd
- THe validation descriptor that will detail the validation errors
that have lead to this exception being raised.
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
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