23.3. Constructors

The following constructors are defined by the class javax.jms.JMSSecurityException.

JMSSecurityException(String)

public JMSSecurityException(java.lang.String reason)

Constructs a JMSSecurityException with the specified reason. The error code defaults to null.

PARAMETERS:

reason a description of the exception

JMSSecurityException(String, String)

public JMSSecurityException(java.lang.String reason,
                                          java.lang.String errorCode)

Constructs a JMSSecurityException 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.