Package org.fugerit.java.core.db.dao
Class DAOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.fugerit.java.core.db.dao.DAOException
-
- All Implemented Interfaces:
Serializable
public class DAOException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DAOException()
DAOException(String message)
DAOException(String message, Throwable t)
DAOException(Throwable t)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends Exception>
voidapply(UnsafeVoid<E> fun)
static DAOException
convertEx(Exception e)
static DAOException
convertEx(String baseMessage, Exception e)
static DAOException
convertExMethod(String method, Exception e)
static <T,E extends Exception>
Tget(UnsafeSupplier<T,E> fun)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
convertEx
public static DAOException convertEx(String baseMessage, Exception e)
-
convertExMethod
public static DAOException convertExMethod(String method, Exception e)
-
convertEx
public static DAOException convertEx(Exception e)
-
get
public static <T,E extends Exception> T get(UnsafeSupplier<T,E> fun) throws DAOException
- Throws:
DAOException
-
apply
public static <E extends Exception> void apply(UnsafeVoid<E> fun) throws DAOException
- Throws:
DAOException
-
-