Package org.fugerit.java.core.db.dao
Class DAORuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.fugerit.java.core.db.dao.DAORuntimeException
-
- All Implemented Interfaces:
Serializable
public class DAORuntimeException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DAORuntimeException()
DAORuntimeException(String message)
DAORuntimeException(String message, Throwable t)
DAORuntimeException(Throwable t)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends Exception>
voidapply(UnsafeVoid<E> fun)
static DAORuntimeException
convertEx(Exception e)
static DAORuntimeException
convertEx(String baseMessage, Exception e)
static DAORuntimeException
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 DAORuntimeException convertEx(String baseMessage, Exception e)
-
convertExMethod
public static DAORuntimeException convertExMethod(String method, Exception e)
-
convertEx
public static DAORuntimeException convertEx(Exception e)
-
get
public static <T,E extends Exception> T get(UnsafeSupplier<T,E> fun)
-
apply
public static <E extends Exception> void apply(UnsafeVoid<E> fun)
-
-