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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.fugerit.java.core.function.UnsafeConsumer<Exception,DocException> static final org.fugerit.java.core.function.UnsafeConsumer<Exception,DocException> static final org.fugerit.java.core.function.UnsafeConsumer<Exception,DocException> -
Constructor Summary
ConstructorsConstructorDescriptionDocException(String message) DocException(String code, String message, Throwable cause) DocException(String message, Throwable cause) DocException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Exception>
voidapply(org.fugerit.java.core.function.UnsafeVoid<E> fun) static <E extends Exception>
voidapply(org.fugerit.java.core.function.UnsafeVoid<E> fun, org.fugerit.java.core.function.UnsafeConsumer<Exception, DocException> exHandler) static <E extends Exception>
voidapplySilent(org.fugerit.java.core.function.UnsafeVoid<E> fun) static <E extends Exception>
voidapplyWithMessage(org.fugerit.java.core.function.UnsafeVoid<E> fun, String message) static DocExceptionstatic DocExceptionstatic DocExceptionconvertExMethod(String method, Exception e) static <T,E extends Exception>
Tget(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun) static <T,E extends Exception>
Tget(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun, org.fugerit.java.core.function.UnsafeConsumer<Exception, DocException> exHandler) getCode()static <T,E extends Exception>
TgetSilent(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun) static <T,E extends Exception>
TgetWithMessage(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun, String message) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DEFAULT_CODE
- See Also:
-
EX_HANDLER_SILENT
public static final org.fugerit.java.core.function.UnsafeConsumer<Exception,DocException> EX_HANDLER_SILENT -
EX_HANDLER_RETHROW
public static final org.fugerit.java.core.function.UnsafeConsumer<Exception,DocException> EX_HANDLER_RETHROW -
EX_HANDLER_DEFAULT
public static final org.fugerit.java.core.function.UnsafeConsumer<Exception,DocException> EX_HANDLER_DEFAULT
-
-
Constructor Details
-
DocException
public DocException() -
DocException
-
DocException
-
DocException
-
DocException
-
-
Method Details
-
getCode
-
convertEx
-
convertExMethod
-
convertEx
-
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
-
getSilent
public static <T,E extends Exception> T getSilent(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun) throws DocException- Throws:
DocException
-
applySilent
public static <E extends Exception> void applySilent(org.fugerit.java.core.function.UnsafeVoid<E> fun) throws DocException - Throws:
DocException
-
getWithMessage
public static <T,E extends Exception> T getWithMessage(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun, String message) throws DocException- Throws:
DocException
-
applyWithMessage
public static <E extends Exception> void applyWithMessage(org.fugerit.java.core.function.UnsafeVoid<E> fun, String message) throws DocException - Throws:
DocException
-
get
public static <T,E extends Exception> T get(org.fugerit.java.core.function.UnsafeSupplier<T, E> fun, org.fugerit.java.core.function.UnsafeConsumer<Exception, throws DocExceptionDocException> exHandler) - Throws:
DocException
-
apply
public static <E extends Exception> void apply(org.fugerit.java.core.function.UnsafeVoid<E> fun, org.fugerit.java.core.function.UnsafeConsumer<Exception, DocException> exHandler) throws DocException- Throws:
DocException
-