Rakesh API

biz.wedoit4u
Class CMAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by biz.wedoit4u.CMAException
All Implemented Interfaces:
java.io.Serializable

public class CMAException
extends java.lang.Exception

A custom exception that is used when any kind of exceptions are encountered in the CMA application. Typically exceptions are encountered while interacting with the database via the entity beans.

Copyright 2003 Rakesh Vidyadharan

Version:
$Id: CMAException.java,v 1.4 2004/05/26 11:42:30 rakesh Exp $
Author:
Rakesh Vidyadharan 01st October 2003
See Also:
Serialized Form

Field Summary
private  boolean critical
          A boolean field that indicates the criticality of the error.
 
Constructor Summary
CMAException(boolean critical, java.lang.String message)
          Create a new exception with the specified message.
CMAException(boolean critical, java.lang.String message, java.lang.Throwable throwable)
          Create a new exception with the specified message and instance of Throwable that caused the problem.
CMAException(boolean critical, java.lang.Throwable throwable)
          Create a new exception with the specified instance of Throwable and a flag indicating whether the exception is critical in nature or not.
CMAException(java.lang.String message)
          Create a new exception with the specified message.
CMAException(java.lang.String message, java.lang.Throwable throwable)
          Create a new exception with the specified message.
CMAException(java.lang.Throwable throwable)
          Create a new exception with the specified instance of Throwable.
 
Method Summary
 boolean getCritical()
          Returns critical.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

critical

private boolean critical
A boolean field that indicates the criticality of the error. A value of true is used to indicate a critical error, while a value of false is used to indicate a non critical error. The default value is true.

Constructor Detail

CMAException

public CMAException(java.lang.String message)
Create a new exception with the specified message. Simply invokes the super class constructor with the message specified.

Parameters:
message - - The message that describes the problem.

CMAException

public CMAException(boolean critical,
                    java.lang.String message)
Create a new exception with the specified message. Simply invokes CMAException( String ), and set the value of critical with the specified value.

Parameters:
critical - - Indicates whether the exception is critical in nature or not. Value of true indicates a critical failure.
message - - The message that describes the problem.

CMAException

public CMAException(java.lang.Throwable throwable)
Create a new exception with the specified instance of Throwable. Simply invokes the super class constructor with with throwable specified.

Parameters:
throwable - - The instance of Throwable that is the cause for this instance of the Exception.

CMAException

public CMAException(boolean critical,
                    java.lang.Throwable throwable)
Create a new exception with the specified instance of Throwable and a flag indicating whether the exception is critical in nature or not. Simply invokes CMAException( Throwable ), and set the value of critical with the value specified.

Parameters:
critical - - Indicates whether the exception is critical in nature or not. Value of true indicates a critical failure.
throwable - - The instance of Throwable that is the cause for this instance of the Exception.

CMAException

public CMAException(java.lang.String message,
                    java.lang.Throwable throwable)
Create a new exception with the specified message. Simply invokes the super class constructor with the message specified.

Parameters:
message - - The message that describes the problem.

CMAException

public CMAException(boolean critical,
                    java.lang.String message,
                    java.lang.Throwable throwable)
Create a new exception with the specified message and instance of Throwable that caused the problem. Invokes the CMAException( String, Throwable ) constructor, and sets the value of critical with the value specified.

Parameters:
critical - - Indicates whether the exception is critical in nature or not. Value of true indicates a critical failure.
message - - The message that describes the problem.
throwable - - The instance of Throwable that caused this instance of the exception to be thrown.
Method Detail

getCritical

public final boolean getCritical()
Returns critical.

Returns:
boolean - The value/reference of/to critical.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan