org.axiondb.util
Class ExceptionConverter

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

public class ExceptionConverter
extends 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 SQLException convert(AxionException e)
           
static SQLException convert(IOException e)
           
static SQLException convert(RuntimeException e)
           
static SQLException convert(String message, RuntimeException e)
           
static IOException convertToIOException(Exception e)
           
static RuntimeException convertToRuntimeException(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 SQLException convert(AxionException e)

convert

public static SQLException convert(RuntimeException e)

convert

public static SQLException convert(String message,
                                   RuntimeException e)

convert

public static SQLException convert(IOException e)

convertToIOException

public static IOException convertToIOException(Exception e)

convertToRuntimeException

public static RuntimeException convertToRuntimeException(Exception e)