1. /*
  2. * @(#)PrintException.java 1.5 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 javax.print;
  8. /**
  9. * Class PrintException encapsulates a printing-related error condition that
  10. * occurred while using a Print Service instance. This base class
  11. * furnishes only a string description of the error. Subclasses furnish more
  12. * detailed information if applicable.
  13. *
  14. */
  15. public class PrintException extends Exception {
  16. /**
  17. * Construct a print exception with no detail message.
  18. */
  19. public PrintException() {
  20. super();
  21. }
  22. /**
  23. * Construct a print exception with the given detail message.
  24. *
  25. * @param s Detail message, or null if no detail message.
  26. */
  27. public PrintException (String s) {
  28. super (s);
  29. }
  30. /**
  31. * Construct a print exception chaining the supplied exception.
  32. *
  33. * @param e Chained exception.
  34. */
  35. public PrintException (Exception e) {
  36. super ( e);
  37. }
  38. /**
  39. * Construct a print exception with the given detail message
  40. * and chained exception.
  41. * @param s Detail message, or null if no detail message.
  42. * @param e Chained exception.
  43. */
  44. public PrintException (String s, Exception e) {
  45. super (s, e);
  46. }
  47. }