Class ExceptionUtils

java.lang.Object
org.mapfish.print.ExceptionUtils

public final class ExceptionUtils extends Object
Util class for exception handling.
  • Method Details

    • getRootCause

      public static Throwable getRootCause(Throwable e)
      Because exceptions might get re-thrown several times, an error message like "java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: ..." might get created. To avoid this, this method finds the root cause, so that only a message like "java.lang.IllegalArgumentException: ..." is shown.
      Parameters:
      e - A throwable.
      Returns:
      root Throwable