fix(TDI-38240): Make JSONException public. Replace StringBuffer with StringBuilder in JSONObject. (#1150)

This commit is contained in:
Ihor Istomin
2017-11-07 04:05:18 +02:00
committed by wang wei
parent 50239f05c3
commit bc461d91f6
2 changed files with 39 additions and 43 deletions

View File

@@ -0,0 +1,30 @@
package routines.system;
/**
* The JSONException is thrown by the JSON.org classes when things are amiss.
*
* @author JSON.org
* @version 2008-09-18
*/
public class JSONException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 0;
/**
* Constructs a JSONException with an explanatory message.
*
* @param message Detail about the reason for the exception.
*/
public JSONException(String message) {
super(message);
}
public JSONException(Throwable t) {
super(t.getMessage(), t);
}
}