com.github.drinkjava2.jdbpro
Class DbProRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DbProRuntimeException
public DbProRuntimeException()
DbProRuntimeException
public DbProRuntimeException(Throwable cause)
DbProRuntimeException
public DbProRuntimeException(String msg)
DbProRuntimeException
public DbProRuntimeException(String msg,
Throwable cause)
assertNotNull
public static void assertNotNull(Object object,
String msg)
Copyright © 2018. All rights reserved.