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