org.midao.jdbc.core.exception
Class ExceptionUtils

java.lang.Object
  extended by org.midao.jdbc.core.exception.ExceptionUtils

public class ExceptionUtils
extends java.lang.Object

Various utilities used by ExceptionHandlers


Constructor Summary
ExceptionUtils()
           
 
Method Summary
static void rethrow(MidaoException cause)
          Converts MidaoException into MidaoSQLException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtils

public ExceptionUtils()
Method Detail

rethrow

public static void rethrow(MidaoException cause)
                    throws MidaoSQLException
Converts MidaoException into MidaoSQLException. Useful in cases when internal logic thrown MidaoException during processing of Query output. This allows for user to catch only SQLException instead of SQLException and MidaoException

Parameters:
cause - original MidaoException which would be converted
Throws:
MidaoSQLException


Copyright © 2013. All Rights Reserved.