Class JmsException

    • Constructor Detail

      • JmsException

        public JmsException​(String msg)
        Constructor that takes a message.
        Parameters:
        msg - the detail message
      • JmsException

        public JmsException​(String msg,
                            Throwable cause)
        Constructor that takes a message and a root cause.
        Parameters:
        msg - the detail message
        cause - the cause of the exception. This argument is generally expected to be a proper subclass of JMSException, but can also be a JNDI NamingException or the like.
      • JmsException

        public JmsException​(Throwable cause)
        Constructor that takes a plain root cause, intended for subclasses mirroring corresponding javax.jms exceptions.
        Parameters:
        cause - the cause of the exception. This argument is generally expected to be a proper subclass of JMSException.
    • Method Detail

      • getErrorCode

        public String getErrorCode()
        Convenience method to get the vendor specific error code if the root cause was an instance of JMSException.
        Returns:
        a string specifying the vendor-specific error code if the root cause is an instance of JMSException, or null