1. /*
  2. * @(#)NoSuchAlgorithmException.java 1.25 03/12/19
  3. *
  4. * Copyright 2004 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.25, 03/12/19
  13. * @author Benjamin Renaud
  14. */
  15. public class NoSuchAlgorithmException extends GeneralSecurityException {
  16. private static final long serialVersionUID = -7443947487218346562L;
  17. /**
  18. * Constructs a NoSuchAlgorithmException with no detail
  19. * message. A detail message is a String that describes this
  20. * particular exception.
  21. */
  22. public NoSuchAlgorithmException() {
  23. super();
  24. }
  25. /**
  26. * Constructs a NoSuchAlgorithmException with the specified
  27. * detail message. A detail message is a String that describes
  28. * this particular exception, which may, for example, specify which
  29. * algorithm is not available.
  30. *
  31. * @param msg the detail message.
  32. */
  33. public NoSuchAlgorithmException(String msg) {
  34. super(msg);
  35. }
  36. /**
  37. * Creates a <code>NoSuchAlgorithmException</code> with the specified
  38. * detail message and cause.
  39. *
  40. * @param message the detail message (which is saved for later retrieval
  41. * by the {@link #getMessage()} method).
  42. * @param cause the cause (which is saved for later retrieval by the
  43. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  44. * and indicates that the cause is nonexistent or unknown.)
  45. * @since 1.5
  46. */
  47. public NoSuchAlgorithmException(String message, Throwable cause) {
  48. super(message, cause);
  49. }
  50. /**
  51. * Creates a <code>NoSuchAlgorithmException</code> with the specified cause
  52. * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
  53. * (which typically contains the class and detail message of
  54. * <tt>cause</tt>).
  55. *
  56. * @param cause the cause (which is saved for later retrieval by the
  57. * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
  58. * and indicates that the cause is nonexistent or unknown.)
  59. * @since 1.5
  60. */
  61. public NoSuchAlgorithmException(Throwable cause) {
  62. super(cause);
  63. }
  64. }