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.

SystemMessageException.java 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.itmill.toolkit.terminal.gwt.server;
  2. public class SystemMessageException extends RuntimeException {
  3. /**
  4. * Serial generated by eclipse.
  5. */
  6. private static final long serialVersionUID = -8249486543123286960L;
  7. /**
  8. * Cause of the method exception
  9. */
  10. private Throwable cause;
  11. /**
  12. * Constructs a new <code>SystemMessageException</code> with the specified
  13. * detail message.
  14. *
  15. * @param msg
  16. * the detail message.
  17. */
  18. public SystemMessageException(String msg) {
  19. super(msg);
  20. }
  21. /**
  22. * Constructs a new <code>SystemMessageException</code> with the specified
  23. * detail message and cause.
  24. *
  25. * @param msg
  26. * the detail message.
  27. * @param cause
  28. * the cause of the exception.
  29. */
  30. public SystemMessageException(String msg, Throwable cause) {
  31. super(msg, cause);
  32. }
  33. /**
  34. * Constructs a new <code>SystemMessageException</code> from another
  35. * exception.
  36. *
  37. * @param cause
  38. * the cause of the exception.
  39. */
  40. public SystemMessageException(Throwable cause) {
  41. this.cause = cause;
  42. }
  43. /**
  44. * @see java.lang.Throwable#getCause()
  45. */
  46. public Throwable getCause() {
  47. return cause;
  48. }
  49. }