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.

JSONException.java 738B

1234567891011121314151617181920212223242526272829303132
  1. package com.vaadin.external.json;
  2. /**
  3. * The JSONException is thrown by the JSON.org classes when things are amiss.
  4. *
  5. * @author JSON.org
  6. * @version 2010-12-24
  7. */
  8. public class JSONException extends Exception {
  9. private static final long serialVersionUID = 0;
  10. private Throwable cause;
  11. /**
  12. * Constructs a JSONException with an explanatory message.
  13. *
  14. * @param message
  15. * Detail about the reason for the exception.
  16. */
  17. public JSONException(String message) {
  18. super(message);
  19. }
  20. public JSONException(Throwable cause) {
  21. super(cause.getMessage());
  22. this.cause = cause;
  23. }
  24. @Override
  25. public Throwable getCause() {
  26. return this.cause;
  27. }
  28. }