java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.odoframework.WrappedException
net.odoframework.sql.SQLWrappedException
- All Implemented Interfaces:
Serializable
public class SQLWrappedException
extends net.odoframework.WrappedException
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SQLWrappedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, SQLException e)SQLWrappedException(String message, SQLException e)SQLWrappedException(SQLException e) -
Method Summary
Modifier and Type Method Description static <T> Tget(SQLSupplier<T> sqlRunnable)SQLExceptiongetException()static <T, K> Kmap(T value, SQLFunction<T,K> function)static voidrun(SQLRunnable sqlRunnable)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SQLWrappedException
-
SQLWrappedException
-
SQLWrappedException
public SQLWrappedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, SQLException e)
-
-
Method Details
-
run
-
get
-
map
-
getException
- Overrides:
getExceptionin classnet.odoframework.WrappedException
-