You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FOPException.java 699B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  3. * For details on use and redistribution please refer to the
  4. * LICENSE file included with these sources."
  5. */
  6. package org.apache.fop.apps;
  7. /**
  8. * Exception thrown when FOP has a problem
  9. */
  10. public class FOPException extends Exception {
  11. private Throwable _exception;
  12. /**
  13. * create a new FOP Exception
  14. *
  15. * @param message descriptive message
  16. */
  17. public FOPException(String message) {
  18. super(message);
  19. }
  20. public FOPException(Throwable e) {
  21. super(e.getMessage());
  22. _exception = e;
  23. }
  24. public Throwable getException()
  25. {
  26. return _exception;
  27. }
  28. }