Package org.apache.activemq.util
Class ExceptionUtils
- java.lang.Object
-
- org.apache.activemq.util.ExceptionUtils
-
public class ExceptionUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ExceptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActiveMQMessageFormatExceptioncreateMessageFormatException(Throwable error)Creates a new ActiveMQMessageFormatException by wrapping the existing throwable.static ThrowablegetRootCause(Throwable throwable)
-
-
-
Method Detail
-
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
-
-