com.objectwave.exception
Class ExceptionBuilder

java.lang.Object
  |
  +--com.objectwave.exception.ExceptionBuilder

public class ExceptionBuilder
extends java.lang.Object

A factory for creating exceptions.

Version:
$Id: ExceptionBuilder.java,v 2.0 2001/06/11 15:46:53 dave_hoag Exp $

Constructor Summary
ExceptionBuilder()
           
 
Method Summary
static ConfigurationException configuration(java.lang.String details)
          Throw this exception if there was some problem with the application was configured.
static DataValidationException dataValidation(java.lang.String details)
           
static NotFoundException notFound(java.lang.String details)
           
static SystemException system(java.lang.Throwable supportingEvidence, java.lang.String details)
          Create a SystemException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionBuilder

public ExceptionBuilder()
Method Detail

system

public static SystemException system(java.lang.Throwable supportingEvidence,
                                     java.lang.String details)
Create a SystemException.

Parameters:
supportingEvidence - If this exception is being translated from a throwable to a system exception, provide the causing exception.

notFound

public static NotFoundException notFound(java.lang.String details)

dataValidation

public static DataValidationException dataValidation(java.lang.String details)

configuration

public static ConfigurationException configuration(java.lang.String details)
Throw this exception if there was some problem with the application was configured.