1. /*
  2. * @(#)FailedLoginException.java 1.13 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.security.auth.login;
  8. /**
  9. * Signals that user authentication failed.
  10. *
  11. * <p> This exception is thrown by LoginModules if authentication failed.
  12. * For example, a <code>LoginModule</code> throws this exception if
  13. * the user entered an incorrect password.
  14. *
  15. * @version 1.13, 01/23/03
  16. */
  17. public class FailedLoginException extends LoginException {
  18. /**
  19. * Constructs a FailedLoginException with no detail message. A detail
  20. * message is a String that describes this particular exception.
  21. */
  22. public FailedLoginException() {
  23. super();
  24. }
  25. /**
  26. * Constructs a FailedLoginException with the specified detail
  27. * message. A detail message is a String that describes this particular
  28. * exception.
  29. *
  30. * <p>
  31. *
  32. * @param msg the detail message.
  33. */
  34. public FailedLoginException(String msg) {
  35. super(msg);
  36. }
  37. }