Class ExceptionHelper

java.lang.Object
org.apache.tinkerpop.gremlin.util.ExceptionHelper

public final class ExceptionHelper extends Object
Utility class with helpful functions for exceptions.
  • Method Details

    • getRootCause

      public static Throwable getRootCause(Throwable t)
      A wrapper to Commons Lang ExceptionUtils.getRootCause(Throwable) which ensures that the root is either an inner cause to the exception or the exception itself (rather than null).
    • getMessageOrName

      public static String getMessageOrName(Throwable t)
    • getMessageFromExceptionOrCause

      public static String getMessageFromExceptionOrCause(Throwable t)