source: main/trunk/model-sites-dev/cambridge-museum/collect/waikato-independent/pre-import/EditableDatabaseTable/src/org/json/JSONException.java@ 34493

Last change on this file since 34493 was 34493, checked in by davidb, 4 years ago

Base project for providing jquery/jquery-ui controlled interface to editing a database table

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