23 lines
433 B
Java
23 lines
433 B
Java
package me.skymc.taboolib.json;
|
|
|
|
|
|
public class JSONException extends Exception {
|
|
|
|
private static final long serialVersionUID = 0;
|
|
private Throwable cause;
|
|
|
|
public JSONException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
public JSONException(Throwable cause) {
|
|
super(cause.getMessage());
|
|
this.cause = cause;
|
|
}
|
|
|
|
@Override
|
|
public Throwable getCause() {
|
|
return this.cause;
|
|
}
|
|
}
|