| Class | Line # | Actions | |||
|---|---|---|---|---|---|
| JSONException | 9 | 3 | 3 |
| 1 | package org.json; | |
| 2 | ||
| 3 | /** | |
| 4 | * The JSONException is thrown by the JSON.org classes when things are amiss. | |
| 5 | * | |
| 6 | * @author JSON.org | |
| 7 | * @version 2015-12-09 | |
| 8 | */ | |
| 9 | public class JSONException extends RuntimeException | |
| 10 | { | |
| 11 | /** Serialization ID */ | |
| 12 | private static final long serialVersionUID = 0; | |
| 13 | ||
| 14 | /** | |
| 15 | * Constructs a JSONException with an explanatory message. | |
| 16 | * | |
| 17 | * @param message | |
| 18 | * Detail about the reason for the exception. | |
| 19 | */ | |
| 20 | 0 | public JSONException(final String message) |
| 21 | { | |
| 22 | 0 | super(message); |
| 23 | } | |
| 24 | ||
| 25 | /** | |
| 26 | * Constructs a JSONException with an explanatory message and cause. | |
| 27 | * | |
| 28 | * @param message | |
| 29 | * Detail about the reason for the exception. | |
| 30 | * @param cause | |
| 31 | * The cause. | |
| 32 | */ | |
| 33 | 0 | public JSONException(final String message, final Throwable cause) |
| 34 | { | |
| 35 | 0 | super(message, cause); |
| 36 | } | |
| 37 | ||
| 38 | /** | |
| 39 | * Constructs a new JSONException with the specified cause. | |
| 40 | * | |
| 41 | * @param cause | |
| 42 | * The cause. | |
| 43 | */ | |
| 44 | 0 | public JSONException(final Throwable cause) |
| 45 | { | |
| 46 | 0 | super(cause.getMessage(), cause); |
| 47 | } | |
| 48 | ||
| 49 | } |