类 JmsException

    • 构造器详细资料

      • JmsException

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

        public JmsException​(String msg,
                            Throwable cause)
        Constructor that takes a message and a root cause.
        参数:
        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.
        参数:
        cause - the cause of the exception. This argument is generally expected to be a proper subclass of JMSException.
    • 方法详细资料

      • getErrorCode

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