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 905B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal;
  5. import java.io.IOException;
  6. import java.io.Serializable;
  7. /**
  8. * <code>PaintExcepection</code> is thrown if painting of a component fails.
  9. *
  10. * @author Vaadin Ltd.
  11. * @version
  12. * @VERSION@
  13. * @since 3.0
  14. */
  15. @SuppressWarnings("serial")
  16. public class PaintException extends IOException implements Serializable {
  17. /**
  18. * Constructs an instance of <code>PaintExeception</code> with the specified
  19. * detail message.
  20. *
  21. * @param msg
  22. * the detail message.
  23. */
  24. public PaintException(String msg) {
  25. super(msg);
  26. }
  27. /**
  28. * Constructs an instance of <code>PaintExeception</code> from IOException.
  29. *
  30. * @param exception
  31. * the original exception.
  32. */
  33. public PaintException(IOException exception) {
  34. super(exception.getMessage());
  35. }
  36. }