|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
biz.wedoit4u.CMAException
public class CMAException
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
| 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 |
|---|
private boolean critical
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 |
|---|
public CMAException(java.lang.String message)
message - - The message that describes the problem.
public CMAException(boolean critical,
java.lang.String message)
CMAException( String ), and set the
value of critical with the specified value.
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.public CMAException(java.lang.Throwable throwable)
throwable - - The instance of Throwable that is
the cause for this instance of the Exception.
public CMAException(boolean critical,
java.lang.Throwable throwable)
CMAException( Throwable ), and
set the value of critical with the value specified.
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.
public CMAException(java.lang.String message,
java.lang.Throwable throwable)
message - - The message that describes the problem.
public CMAException(boolean critical,
java.lang.String message,
java.lang.Throwable throwable)
Throwable that caused the problem. Invokes the
CMAException( String, Throwable ) constructor, and sets
the value of critical with the value specified.
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 |
|---|
public final boolean getCritical()
critical.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||