Class Exceptions

java.lang.Object
com.oracle.coherence.common.base.Exceptions

public abstract class Exceptions extends Object
Class for providing exception support.
Since:
20.06
Author:
cp 2000.08.02
  • Constructor Details

    • Exceptions

      public Exceptions()
  • Method Details

    • ensureRuntimeException

      public static RuntimeException ensureRuntimeException(Throwable e)
      Convert the passed exception to a RuntimeException if necessary.
      Parameters:
      e - any Throwable object
      Returns:
      a RuntimeException
    • ensureRuntimeException

      public static RuntimeException ensureRuntimeException(Throwable e, String s)
      Convert the passed exception to a RuntimeException if necessary.
      Parameters:
      e - any Throwable object
      s - an additional description
      Returns:
      a RuntimeException
    • getOriginalException

      public static Throwable getOriginalException(RuntimeException e)
      Unwind the wrapper (runtime) exception to extract the original
      Parameters:
      e - Runtime exception (wrapper)
      Returns:
      an original wrapped exception
    • throwIfFatal

      public static void throwIfFatal(Throwable t)
      Re-throw the specified exception if it is a fatal unrecoverable exception.
      Parameters:
      t - the exception to check