Package org.fugerit.java.doc.base.config
Class DocException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.fugerit.java.doc.base.config.DocException
-
- All Implemented Interfaces:
Serializable
public class DocException extends Exception
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CODE
-
Constructor Summary
Constructors Constructor Description DocException()
DocException(String message)
DocException(String code, String message, Throwable cause)
DocException(String message, Throwable cause)
DocException(Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E extends Exception>
voidapply(org.fugerit.java.core.function.UnsafeVoid<E> fun)
static DocException
convertEx(Exception e)
static DocException
convertEx(String baseMessage, Exception e)
static DocException
convertExMethod(String method, Exception e)
static <T,E extends Exception>
Tget(org.fugerit.java.core.function.UnsafeSupplier<T,E> fun)
String
getCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
DEFAULT_CODE
public static final String DEFAULT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public String getCode()
-
convertEx
public static DocException convertEx(String baseMessage, Exception e)
-
convertExMethod
public static DocException convertExMethod(String method, Exception e)
-
convertEx
public static DocException convertEx(Exception e)
-
get
public static <T,E extends Exception> T get(org.fugerit.java.core.function.UnsafeSupplier<T,E> fun) throws DocException
- Throws:
DocException
-
apply
public static <E extends Exception> void apply(org.fugerit.java.core.function.UnsafeVoid<E> fun) throws DocException
- Throws:
DocException
-
-