Package me.saro.kit
Class Exceptions
java.lang.Object
me.saro.kit.Exceptions
public class Exceptions
extends java.lang.Object
Exception util
- Since:
- 1.0.0
- Author:
- PARK Yong Seo
-
Constructor Summary
Constructors Constructor Description Exceptions() -
Method Summary
Modifier and Type Method Description static voidignore(ThrowableRunnable run)ignore "Exception"static voidruntime(ThrowableRunnable run)It catches "Exception" and converts it to "RuntimeException" and throws it.static <R> Rruntime(ThrowableSupplier<R> run)It catches "Exception" and converts it to "RuntimeException" and throws it.static java.lang.StringtoString(java.lang.Exception e)to String the exception with stackTrace
-
Constructor Details
-
Exceptions
public Exceptions()
-
-
Method Details
-
toString
public static java.lang.String toString(java.lang.Exception e)to String the exception with stackTrace- Parameters:
e-- Returns:
-
runtime
It catches "Exception" and converts it to "RuntimeException" and throws it.- Type Parameters:
R-- Parameters:
run-- Returns:
-
runtime
It catches "Exception" and converts it to "RuntimeException" and throws it.- Parameters:
run-
-
ignore
ignore "Exception"- Parameters:
run-
-