1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.jms;
  6. /**
  7. * <P> This exception must be thrown when a JMS client attempts to read a
  8. * write-only message.
  9. *
  10. * @version 26 August 1998
  11. * @author Rahul Sharma
  12. **/
  13. public class MessageNotReadableException extends JMSException {
  14. /** Constructs a <CODE>MessageNotReadableException</CODE> with the specified
  15. * reason and error code.
  16. *
  17. * @param reason a description of the exception
  18. * @param errorCode a string specifying the vendor-specific
  19. * error code
  20. *
  21. **/
  22. public
  23. MessageNotReadableException(String reason, String errorCode) {
  24. super(reason, errorCode);
  25. }
  26. /** Constructs a <CODE>MessageNotReadableException</CODE> with the specified
  27. * reason. The error code defaults to null.
  28. *
  29. * @param reason a description of the exception
  30. **/
  31. public
  32. MessageNotReadableException(String reason) {
  33. super(reason);
  34. }
  35. }