Class Errors

java.lang.Object
me.bristermitten.mittenlib.util.Errors

public class Errors extends Object
Utility class for dealing with Throwables
  • Method Details

    • sneakyThrow

      public static <E extends Throwable> void sneakyThrow(Throwable e) throws E
      Sneakily throw a checked exception as an unchecked exception
      Type Parameters:
      E - the type of the exception
      Parameters:
      e - the exception to throw
      Throws:
      E - the exception