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 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. * @since 3.0
  12. */
  13. @SuppressWarnings("serial")
  14. public class PaintException extends IOException implements Serializable {
  15. /**
  16. * Constructs an instance of <code>PaintExeception</code> with the specified
  17. * detail message.
  18. *
  19. * @param msg
  20. * the detail message.
  21. */
  22. public PaintException(String msg) {
  23. super(msg);
  24. }
  25. /**
  26. * Constructs an instance of <code>PaintExeception</code> with the specified
  27. * detail message and cause.
  28. *
  29. * @param msg
  30. * the detail message.
  31. * @param cause
  32. * the cause
  33. */
  34. public PaintException(String msg, Throwable cause) {
  35. super(msg, cause);
  36. }
  37. /**
  38. * Constructs an instance of <code>PaintExeception</code> from IOException.
  39. *
  40. * @param exception
  41. * the original exception.
  42. */
  43. public PaintException(IOException exception) {
  44. super(exception.getMessage());
  45. }
  46. }