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 void ignore​(ThrowableRunnable run)
    ignore "Exception"
    static void runtime​(ThrowableRunnable run)
    It catches "Exception" and converts it to "RuntimeException" and throws it.
    static <R> R runtime​(ThrowableSupplier<R> run)
    It catches "Exception" and converts it to "RuntimeException" and throws it.
    static java.lang.String toString​(java.lang.Exception e)
    to String the exception with stackTrace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • toString

      public static java.lang.String toString​(java.lang.Exception e)
      to String the exception with stackTrace
      Parameters:
      e -
      Returns:
    • runtime

      public static <R> R runtime​(ThrowableSupplier<R> run)
      It catches "Exception" and converts it to "RuntimeException" and throws it.
      Type Parameters:
      R -
      Parameters:
      run -
      Returns:
    • runtime

      public static void runtime​(ThrowableRunnable run)
      It catches "Exception" and converts it to "RuntimeException" and throws it.
      Parameters:
      run -
    • ignore

      public static void ignore​(ThrowableRunnable run)
      ignore "Exception"
      Parameters:
      run -