01: /*
02: * @(#)JMSSecurityException.java 1.8 02/04/09
03: *
04: * Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * SUN PROPRIETARY/CONFIDENTIAL.
07: * This software is the proprietary information of Sun Microsystems, Inc.
08: * Use is subject to license terms.
09: *
10: */
11:
12: package javax.jms;
13:
14: /**
15: * <P> This exception must be thrown when a provider rejects a user
16: * name/password submitted by a client. It may also be thrown for any case
17: * where a security restriction prevents a method from completing.
18: *
19: * @version 26 August 1998
20: * @author Rahul Sharma
21: **/
22:
23: public class JMSSecurityException extends JMSException {
24:
25: /** Constructs a <CODE>JMSSecurityException</CODE> with the specified
26: * reason and error code.
27: *
28: * @param reason a description of the exception
29: * @param errorCode a string specifying the vendor-specific
30: * error code
31: *
32: **/
33: public JMSSecurityException(String reason, String errorCode) {
34: super (reason, errorCode);
35: }
36:
37: /** Constructs a <CODE>JMSSecurityException</CODE> with the specified
38: * reason. The error code defaults to null.
39: *
40: * @param reason a description of the exception
41: **/
42: public JMSSecurityException(String reason) {
43: super(reason);
44: }
45:
46: }
|