1. /*
  2. * @(#)NoSuchAlgorithmException.java 1.22 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 java.security;
  8. /**
  9. * This exception is thrown when a particular cryptographic algorithm is
  10. * requested but is not available in the environment.
  11. *
  12. * @version 1.22, 03/01/23
  13. * @author Benjamin Renaud
  14. */
  15. public class NoSuchAlgorithmException extends GeneralSecurityException {
  16. /**
  17. * Constructs a NoSuchAlgorithmException with no detail
  18. * message. A detail message is a String that describes this
  19. * particular exception.
  20. */
  21. public NoSuchAlgorithmException() {
  22. super();
  23. }
  24. /**
  25. * Constructs a NoSuchAlgorithmException with the specified
  26. * detail message. A detail message is a String that describes
  27. * this particular exception, which may, for example, specify which
  28. * algorithm is not available.
  29. *
  30. * @param msg the detail message.
  31. */
  32. public NoSuchAlgorithmException(String msg) {
  33. super(msg);
  34. }
  35. }