SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.impl.jdbc.runtime
Class SQLExceptions

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions

public class SQLExceptions
extends Object

Utility class for obtaining an array of Throwable[] objects from a SQLException.


Constructor Summary
SQLExceptions()
           
 
Method Summary
static Throwable[] exceptions(Throwable t)
           
static JDOException handle(Exception ex, boolean fatal)
          Handle the specified exception.
static JDODataStoreException throwDataStore(SQLException e)
           
static JDOFatalDataStoreException throwFatal(SQLException e)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExceptions

public SQLExceptions()
Method Detail

handle

public static JDOException handle(Exception ex,
                                  boolean fatal)
Handle the specified exception. It works with the following heuristic:
Parameters:
ex - the Exception to handle
fatal - whether the exception will be fatal or not
Returns:
the JDOException in which the exception is wrapped

throwFatal

public static JDOFatalDataStoreException throwFatal(SQLException e)

throwDataStore

public static JDODataStoreException throwDataStore(SQLException e)

exceptions

public static Throwable[] exceptions(Throwable t)

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.