package org.asamk.signal.json;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
public class JsonError {
- String message;
+ @JsonProperty
+ final String message;
+
+ @JsonProperty
+ final String type;
public JsonError(Throwable exception) {
this.message = exception.getMessage();
+ this.type = exception.getClass().getSimpleName();
}
}