Class ExceptionUtils

java.lang.Object
org.apache.activemq.util.ExceptionUtils

public class ExceptionUtils extends Object
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • createMessageFormatException

      public static ActiveMQMessageFormatException createMessageFormatException(Throwable error)
      Creates a new ActiveMQMessageFormatException by wrapping the existing throwable. This will only wrap the exception if the throwable contains a message format error as the root cause
      Parameters:
      error - original exception
      Returns:
      ActiveMQMessageFormatException if a message format error, else null
    • getRootCause

      public static Throwable getRootCause(Throwable throwable)