Java IRC bot
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 614B

123456789101112131415161718192021222324252627
  1. package org.json;
  2. /**
  3. * The JSONException is thrown by the JSON.org classes then things are amiss.
  4. * @author JSON.org
  5. * @version 2008-09-18
  6. */
  7. public class JSONException extends Exception {
  8. private Throwable cause;
  9. /**
  10. * Constructs a JSONException with an explanatory message.
  11. * @param message Detail about the reason for the exception.
  12. */
  13. public JSONException(String message) {
  14. super(message);
  15. }
  16. public JSONException(Throwable t) {
  17. super(t.getMessage());
  18. this.cause = t;
  19. }
  20. public Throwable getCause() {
  21. return this.cause;
  22. }
  23. }