Class ExceptionUtil

java.lang.Object
com.appiancorp.suiteapi.common.exceptions.ExceptionUtil

@Deprecated public class ExceptionUtil extends Object
Deprecated.
use individual method replacements
This class exists to remove gwt-incompatible code from Appian exception classes. A super-sourced version of this class will throw exceptions instead of implementing these methods.
This allows us to use the exception types, without depending on unusable code paths that are never used by the client.
  • Method Details

    • isAssignableFrom

      @Deprecated public static boolean isAssignableFrom(Class<?> to, Class<?> from)
      Deprecated.
      see Class.isAssignableFrom
      Is Class to assignable from Class from?
      Parameters:
      to -
      from -
      Returns:
    • printStackTrace

      @Deprecated public static void printStackTrace(Throwable t, PrintWriter p)
      Deprecated.
      see Throwable.printStackTrace
      Print the stack trace of Throwable t to PrintWriter p
      Parameters:
      t -
      p -
    • isDelegateInstanceOf

      @Deprecated public static boolean isDelegateInstanceOf(AppianRuntimeException e, Class<? extends AppianException> targetExcepionClass)
      Deprecated.
      see AppianRuntimeException's isDelegateInstanceOf
      Is the AppianException delegate of AppianRuntimeException e assignable from Class targetExcepionClass?
      Parameters:
      e -
      targetExcepionClass -
      Returns: