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 provider rejects a user
  8. * name/password submitted by a client. It may also be thrown for any case
  9. * where a security restriction prevents a method from completing.
  10. *
  11. * @version 26 August 1998
  12. * @author Rahul Sharma
  13. **/
  14. public class JMSSecurityException extends JMSException {
  15. /** Constructs a <CODE>JMSSecurityException</CODE> with the specified
  16. * reason and error code.
  17. *
  18. * @param reason a description of the exception
  19. * @param errorCode a string specifying the vendor-specific
  20. * error code
  21. *
  22. **/
  23. public
  24. JMSSecurityException(String reason, String errorCode) {
  25. super(reason, errorCode);
  26. }
  27. /** Constructs a <CODE>JMSSecurityException</CODE> with the specified
  28. * reason. The error code defaults to null.
  29. *
  30. * @param reason a description of the exception
  31. **/
  32. public
  33. JMSSecurityException(String reason) {
  34. super(reason);
  35. }
  36. }