Last change
on this file since 26899 was 26899, checked in by davidb, 11 years ago |
Tipple reborn after Chris's Summer of Code 2013
|
File size:
707 bytes
|
Line | |
---|
1 | package org.json1;
|
---|
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 | */
|
---|
8 | public 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.