Class VariantException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.jonloucks.variants.api.VariantException
All Implemented Interfaces:
Serializable

public class VariantException extends RuntimeException
Runtime exception thrown for Variants related problems. For example, when Variants fails to initialize.
See Also:
  • Constructor Details

  • Method Details

    • rethrow

      public static VariantException rethrow(Throwable thrown) throws Error, RuntimeException
      Rethrows a caught exception or a VariantException if unchecked
      Parameters:
      thrown - the previously caught exception
      Returns:
      Possibly a new VariantException which should be rethrown
      Throws:
      Error - iif original thrown is an error
      RuntimeException - when thrown is a RuntimeException
      VariantException - if thrown is a checked exception