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.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLExceptions
public SQLExceptions()
handle
public static JDOException handle(Exception ex,
boolean fatal)
- Handle the specified exception. It works with the following heuristic:
- Parameters:
ex - the Exception to handlefatal - 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)
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.