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