com.github.drinkjava2.jdbpro
Class DbProRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.github.drinkjava2.jdbpro.DbProRuntimeException
All Implemented Interfaces:
Serializable

public class DbProRuntimeException
extends RuntimeException

This DbProRuntimeException only used to wrap a SQLException to a Runtime type Exception to avoid each time to catch annoying SQLException. Usually used together with an IOC/AOP tool like Spring, it will catch runtime Exception and roll back transaction.

Since:
1.7.0
Author:
Yong Zhu
See Also:
Serialized Form

Constructor Summary
DbProRuntimeException()
           
DbProRuntimeException(String msg)
           
DbProRuntimeException(String msg, Throwable cause)
           
DbProRuntimeException(Throwable cause)
           
 
Method Summary
static void assertNotNull(Object object, String msg)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbProRuntimeException

public DbProRuntimeException()

DbProRuntimeException

public DbProRuntimeException(Throwable cause)

DbProRuntimeException

public DbProRuntimeException(String msg)

DbProRuntimeException

public DbProRuntimeException(String msg,
                             Throwable cause)
Method Detail

assertNotNull

public static void assertNotNull(Object object,
                                 String msg)


Copyright © 2018. All rights reserved.