Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.exceptions.CJDBCException Class Reference

Inheritance diagram for org.objectweb.cjdbc.common.exceptions.CJDBCException:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CJDBCException ()
 CJDBCException (String message)
 CJDBCException (Throwable cause)
 CJDBCException (String message, Throwable cause)
Throwable getCause ()
synchronized Throwable fillInStackTrace ()
StackTraceElement[] getStackTrace ()
String getMessage ()
void printStackTrace ()
void printStackTrace (PrintStream arg0)
void printStackTrace (PrintWriter arg0)
void setStackTrace (StackTraceElement[] arg0)

Protected Attributes

Throwable cause

Detailed Description

C-JDBC base exception.

Author:
Mathieu Peltier
Version:
1.0

Definition at line 37 of file CJDBCException.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.common.exceptions.CJDBCException.CJDBCException  ) 
 

Creates a new CJDBCException instance.

Definition at line 45 of file CJDBCException.java.

00046   {
00047   }

org.objectweb.cjdbc.common.exceptions.CJDBCException.CJDBCException String  message  ) 
 

Creates a new CJDBCException instance.

Parameters:
message the error message

Definition at line 54 of file CJDBCException.java.

00055   {
00056     super(message);
00057   }

org.objectweb.cjdbc.common.exceptions.CJDBCException.CJDBCException Throwable  cause  ) 
 

Creates a new CJDBCException instance.

Parameters:
cause the root cause

Definition at line 64 of file CJDBCException.java.

00065   {
00066     this.cause = cause;
00067   }

org.objectweb.cjdbc.common.exceptions.CJDBCException.CJDBCException String  message,
Throwable  cause
 

Creates a new CJDBCException instance.

Parameters:
message the error message
cause the root cause

Definition at line 75 of file CJDBCException.java.

00076   {
00077     super(message);
00078     this.cause = cause;
00079   }


Member Function Documentation

synchronized Throwable org.objectweb.cjdbc.common.exceptions.CJDBCException.fillInStackTrace  ) 
 

See also:
java.lang.Throwable#fillInStackTrace()

Definition at line 94 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00095   {
00096     if (cause != null)
00097     {
00098       return cause.fillInStackTrace();
00099     }
00100     else
00101     {
00102       return super.fillInStackTrace();
00103     }
00104   }

Throwable org.objectweb.cjdbc.common.exceptions.CJDBCException.getCause  ) 
 

Gets the root cause of this exception.

Returns:
a Throwable object

Definition at line 86 of file CJDBCException.java.

00087   {
00088     return cause;
00089   }

String org.objectweb.cjdbc.common.exceptions.CJDBCException.getMessage  ) 
 

See also:
java.lang.Throwable#getMessage()

Definition at line 124 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00125   {
00126     if (cause != null)
00127     {
00128       return cause.getMessage();
00129     }
00130     else
00131     {
00132       return super.getMessage();
00133     }
00134   }

StackTraceElement [] org.objectweb.cjdbc.common.exceptions.CJDBCException.getStackTrace  ) 
 

See also:
java.lang.Throwable#getStackTrace()

Definition at line 109 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00110   {
00111     if (cause != null)
00112     {
00113       return cause.getStackTrace();
00114     }
00115     else
00116     {
00117       return super.getStackTrace();
00118     }
00119   }

void org.objectweb.cjdbc.common.exceptions.CJDBCException.printStackTrace PrintWriter  arg0  ) 
 

See also:
java.lang.Throwable#printStackTrace(java.io.PrintWriter)

Definition at line 169 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00170   {
00171     if (cause != null)
00172     {
00173       cause.printStackTrace(arg0);
00174     }
00175     else
00176     {
00177       super.printStackTrace(arg0);
00178     }
00179   }

void org.objectweb.cjdbc.common.exceptions.CJDBCException.printStackTrace PrintStream  arg0  ) 
 

See also:
java.lang.Throwable#printStackTrace(java.io.PrintStream)

Definition at line 154 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00155   {
00156     if (cause != null)
00157     {
00158       cause.printStackTrace(arg0);
00159     }
00160     else
00161     {
00162       super.printStackTrace(arg0);
00163     }
00164   }

void org.objectweb.cjdbc.common.exceptions.CJDBCException.printStackTrace  ) 
 

See also:
java.lang.Throwable#printStackTrace()

Definition at line 139 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00140   {
00141     if (cause != null)
00142     {
00143       cause.printStackTrace();
00144     }
00145     else
00146     {
00147       super.printStackTrace();
00148     }
00149   }

void org.objectweb.cjdbc.common.exceptions.CJDBCException.setStackTrace StackTraceElement[]  arg0  ) 
 

See also:
java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])

Definition at line 184 of file CJDBCException.java.

References org.objectweb.cjdbc.common.exceptions.CJDBCException.cause.

00185   {
00186     if (cause != null)
00187     {
00188       cause.setStackTrace(arg0);
00189     }
00190     else
00191     {
00192       super.setStackTrace(arg0);
00193     }
00194   }


Member Data Documentation

Throwable org.objectweb.cjdbc.common.exceptions.CJDBCException.cause [protected]
 

Optional exception cause

Definition at line 40 of file CJDBCException.java.

Referenced by org.objectweb.cjdbc.common.exceptions.CJDBCException.fillInStackTrace(), org.objectweb.cjdbc.common.exceptions.CJDBCException.getMessage(), org.objectweb.cjdbc.common.exceptions.CJDBCException.getStackTrace(), org.objectweb.cjdbc.common.exceptions.CJDBCException.printStackTrace(), and org.objectweb.cjdbc.common.exceptions.CJDBCException.setStackTrace().


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:01:38 2005 for C-JDBC by  doxygen 1.3.9.1