org.axiondb.util
Class ExceptionConverter

java.lang.Object
  extended by org.axiondb.util.ExceptionConverter

public class ExceptionConverter
extends java.lang.Object

Converts Axion-specific Exceptions into SQLExceptions.

(This class should eventually handle converting various AxionExceptions in to the proper SQLException with vendor message and code.)

Version:
$Revision: 1.11 $ $Date: 2005/03/17 15:07:09 $

Constructor Summary
ExceptionConverter()
           
 
Method Summary
static java.sql.SQLException convert(AxionException e)
           
static java.sql.SQLException convert(java.io.IOException e)
           
static java.sql.SQLException convert(java.lang.RuntimeException e)
           
static java.sql.SQLException convert(java.lang.String message, java.lang.RuntimeException e)
           
static java.io.IOException convertToIOException(java.lang.Exception e)
           
static java.lang.RuntimeException convertToRuntimeException(java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionConverter

public ExceptionConverter()
Method Detail

convert

public static java.sql.SQLException convert(AxionException e)

convert

public static java.sql.SQLException convert(java.lang.RuntimeException e)

convert

public static java.sql.SQLException convert(java.lang.String message,
                                            java.lang.RuntimeException e)

convert

public static java.sql.SQLException convert(java.io.IOException e)

convertToIOException

public static java.io.IOException convertToIOException(java.lang.Exception e)

convertToRuntimeException

public static java.lang.RuntimeException convertToRuntimeException(java.lang.Exception e)