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.

PaintException.java 972B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.itmill.toolkit.terminal;
  5. import java.io.IOException;
  6. /**
  7. * <code>PaintExcepection</code> is thrown if painting of a component fails.
  8. *
  9. * @author IT Mill Ltd.
  10. * @version
  11. * @VERSION@
  12. * @since 3.0
  13. */
  14. public class PaintException extends IOException {
  15. /**
  16. * Serial generated by eclipse.
  17. */
  18. private static final long serialVersionUID = 3762535607221891897L;
  19. /**
  20. * Constructs an instance of <code>PaintExeception</code> with the
  21. * specified detail message.
  22. *
  23. * @param msg
  24. * the detail message.
  25. */
  26. public PaintException(String msg) {
  27. super(msg);
  28. }
  29. /**
  30. * Constructs an instance of <code>PaintExeception</code> from
  31. * IOException.
  32. *
  33. * @param exception
  34. * the original exception.
  35. */
  36. public PaintException(IOException exception) {
  37. super(exception.getMessage());
  38. }
  39. }