22.3. Constructors
The following constructors are defined by the class javax.jms.JMSException.
JMSException(String)
public JMSException(java.lang.String reason)
Constructs a JMSException with the specified reason. The error code defaults to null.
PARAMETERS:
reason a description of the exception
JMSException(String, String)
public JMSException(java.lang.String reason, java.lang.String errorCode)
Constructs a JMSException with the specified reason and error code.
PARAMETERS:
reason a description of the exception errorCode a string specifying the vendor-specific error code
Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.