org.objectweb.cjdbc.common.exceptions.driver.protocol
Class ControllerCoreException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableException
              extended byorg.objectweb.cjdbc.common.exceptions.driver.protocol.ControllerCoreException
All Implemented Interfaces:
java.io.Serializable

public class ControllerCoreException
extends SerializableException

This class is meant for exceptions originated in controller core (i.e., non-backend) that are serialized to the driver.

Version:
1.0
Author:
Marc Herbert
See Also:
Serialized Form

Field Summary
private static int NO_MORE_BACKEND
           
private static int NO_MORE_CONTROLLER
           
private static int NOT_IMPLEMENTED
           
private static int UNKNOWN
           
 
Fields inherited from class org.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ControllerCoreException(CJDBCInputStream in)
           
ControllerCoreException(java.lang.Throwable ex)
          Converts a chain of Throwables to a new chain of SerializableExceptions starting with a ControllerCoreException.
 
Method Summary
 java.lang.Exception compatibilityWrapperHack()
          Deprecated.  
private static int exceptionTypeCode(java.lang.Throwable ex)
           
 
Methods inherited from class org.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableException
convertStackTrace, fillInStackTrace, getErrorCode, getSerializableStackTrace, getSQLState, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, sendToStream, setErrorCode, setSQLState, setStackTrace
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

private static final int UNKNOWN
See Also:
Constant Field Values

NO_MORE_BACKEND

private static final int NO_MORE_BACKEND
See Also:
Constant Field Values

NO_MORE_CONTROLLER

private static final int NO_MORE_CONTROLLER
See Also:
Constant Field Values

NOT_IMPLEMENTED

private static final int NOT_IMPLEMENTED
See Also:
Constant Field Values
Constructor Detail

ControllerCoreException

public ControllerCoreException(CJDBCInputStream in)
                        throws java.io.IOException
See Also:
SerializableException.SerializableException(CJDBCInputStream)

ControllerCoreException

public ControllerCoreException(java.lang.Throwable ex)
Converts a chain of Throwables to a new chain of SerializableExceptions starting with a ControllerCoreException. The returned chain has the same length.

Parameters:
ex - head of chain to convert
See Also:
SerializableException.SerializableException(Throwable)
Method Detail

exceptionTypeCode

private static int exceptionTypeCode(java.lang.Throwable ex)

compatibilityWrapperHack

public java.lang.Exception compatibilityWrapperHack()
Deprecated.  

This method returns a wrapper around 'this' ControllerCoreException, in order to stay bug for bug compatible with legacy exception handling code. This method should disappear and be implemented above, directly by the code calling it.

Returns:
a wrapper around this object


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