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.9 $ $Date: 2004/09/09 23:47:45 $

Constructor Summary
ExceptionConverter()
           
 
Method Summary
static SQLException convert(AxionException e)
           
static SQLException convert(IOException e)
           
static SQLException convert(RuntimeException e)
           
static SQLException convert(String msg, AxionException e)
           
static SQLException convert(String message, RuntimeException e)
           
static IllegalArgumentException convertToIllegalArgumentException(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(String msg,
                                   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)

convertToIllegalArgumentException

public static IllegalArgumentException convertToIllegalArgumentException(String message,
                                                                         RuntimeException e)

convertToIOException

public static IOException convertToIOException(Exception e)

convertToRuntimeException

public static RuntimeException convertToRuntimeException(Exception e)