public class JsonException extends SphereException
detailMessage: com.fasterxml.jackson.databind.JsonMappingException:
No suitable constructor found for type [simple type, class a.full.ClassName]:
can not instantiate from JSON object (missing default constructor or creator,
or perhaps need to add/enable type information?)
Solution, add JsonCreator
to the constructor of the class a.full.ClassName.httpResponse
Constructor and Description |
---|
JsonException(HttpResponse httpResponse) |
JsonException(String message,
Throwable cause) |
JsonException(Throwable cause) |
addNote, getAdditionalNotes, getHttpResponse, getMessage, getProjectKey, getSphereRequest, httpSummary, setHttpRequest, setProjectKey, setSphereRequest, setUnderlyingHttpResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public JsonException(Throwable cause)
public JsonException(HttpResponse httpResponse)