org.objectweb.cjdbc.common.exceptions
Class CJDBCException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.cjdbc.common.exceptions.CJDBCException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AllBackendsFailedException, AuthenticationException, AuthenticationManagerException, BackupException, BadConnectionException, CommandCompleted, ConsoleException, ControllerException, CreateTableException, DataCollectorException, ErrorCheckingException, JmxException, OctopusException, RollbackException, SecurityException, ShutdownException, SSLException, UnreachableBackendException

public class CJDBCException
extends java.lang.Exception
implements java.io.Serializable

C-JDBC base exception.

Version:
1.0
Author:
Mathieu Peltier
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable cause
          Optional exception cause
private static long serialVersionUID
           
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CJDBCException()
          Creates a new CJDBCException instance.
CJDBCException(java.lang.String message)
          Creates a new CJDBCException instance.
CJDBCException(java.lang.String message, java.lang.Throwable cause)
          Creates a new CJDBCException instance.
CJDBCException(java.lang.Throwable cause)
          Creates a new CJDBCException instance.
 
Method Summary
 java.lang.Throwable fillInStackTrace()
           
 java.lang.Throwable getCause()
          Gets the root cause of this exception.
 java.lang.String getMessage()
           
 java.lang.StackTraceElement[] getStackTrace()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream arg0)
           
 void printStackTrace(java.io.PrintWriter arg0)
           
 void setStackTrace(java.lang.StackTraceElement[] arg0)
           
 
Methods inherited from class java.lang.Throwable
getLocalizedMessage, initCause, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

cause

protected java.lang.Throwable cause
Optional exception cause

Constructor Detail

CJDBCException

public CJDBCException()
Creates a new CJDBCException instance.


CJDBCException

public CJDBCException(java.lang.String message)
Creates a new CJDBCException instance.

Parameters:
message - the error message

CJDBCException

public CJDBCException(java.lang.Throwable cause)
Creates a new CJDBCException instance.

Parameters:
cause - the root cause

CJDBCException

public CJDBCException(java.lang.String message,
                      java.lang.Throwable cause)
Creates a new CJDBCException instance.

Parameters:
message - the error message
cause - the root cause
Method Detail

getCause

public java.lang.Throwable getCause()
Gets the root cause of this exception.

Returns:
a Throwable object

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
See Also:
Throwable.fillInStackTrace()

getStackTrace

public java.lang.StackTraceElement[] getStackTrace()
See Also:
Throwable.getStackTrace()

getMessage

public java.lang.String getMessage()
See Also:
Throwable.getMessage()

printStackTrace

public void printStackTrace()
See Also:
Throwable.printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream arg0)
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(java.io.PrintWriter arg0)
See Also:
Throwable.printStackTrace(java.io.PrintWriter)

setStackTrace

public void setStackTrace(java.lang.StackTraceElement[] arg0)
See Also:
Throwable.setStackTrace(java.lang.StackTraceElement[])


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.