01: /*
02: * @(#)InvalidSelectorException.java 1.6 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
16: * JMS client attempts to give a provider a message selector with
17: * invalid syntax.
18: *
19: * @version 26 August 1998
20: * @author Rahul Sharma
21: **/
22:
23: public class InvalidSelectorException extends JMSException {
24:
25: /** Constructs an <CODE>InvalidSelectorException</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 InvalidSelectorException(String reason, String errorCode) {
34: super (reason, errorCode);
35: }
36:
37: /** Constructs an <CODE>InvalidSelectorException</CODE> with the specified
38: * reason. The error code defaults to null.
39: *
40: * @param reason a description of the exception
41: **/
42: public InvalidSelectorException(String reason) {
43: super(reason);
44: }
45:
46: }
|