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