01: /*
02: * @(#)MessageNotReadableException.java 1.7 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 JMS client attempts to read a
16: * write-only message.
17: *
18: * @version 26 August 1998
19: * @author Rahul Sharma
20: **/
21:
22: public class MessageNotReadableException extends JMSException {
23:
24: /** Constructs a <CODE>MessageNotReadableException</CODE> with the specified
25: * reason and error code.
26: *
27: * @param reason a description of the exception
28: * @param errorCode a string specifying the vendor-specific
29: * error code
30: *
31: **/
32: public MessageNotReadableException(String reason, String errorCode) {
33: super (reason, errorCode);
34: }
35:
36: /** Constructs a <CODE>MessageNotReadableException</CODE> with the specified
37: * reason. The error code defaults to null.
38: *
39: * @param reason a description of the exception
40: **/
41: public MessageNotReadableException(String reason) {
42: super(reason);
43: }
44:
45: }
|