comparison lib/org.json_2.0/src/org/json/JSONException.java @ 0:db87c1b7eb6d

initial
author dwinter
date Wed, 03 Nov 2010 12:18:46 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:db87c1b7eb6d
1 package org.json;
2
3 /**
4 * The JSONException is thrown by the JSON.org classes then things are amiss.
5 * @author JSON.org
6 * @version 2008-09-18
7 */
8 public class JSONException extends Exception {
9 private Throwable cause;
10
11 /**
12 * Constructs a JSONException with an explanatory message.
13 * @param message Detail about the reason for the exception.
14 */
15 public JSONException(String message) {
16 super(message);
17 }
18
19 public JSONException(Throwable t) {
20 super(t.getMessage());
21 this.cause = t;
22 }
23
24 public Throwable getCause() {
25 return this.cause;
26 }
27 }