apidocs / com.srv4pos.server.api.infrastructure.exceptions / ExceptionDeserealizer / deserealize

deserealize

fun deserealize(jsonSource: String, responseCode: Int): JsonException

Tries to deserealize java.lang.String data from http response.

Parameters

jsonSource - java.lang.String of exception data from http response.

responseCode - http response code corresponding to exception.

Exceptions

ClassNotFoundException - if class definition wasn't found.

IllegalAccessException - if there was access right violation.

InstantiationException - if failure happened during exception class instantiation.

Return
deserealized instance that extend com.srv4pos.server.api.exceptions.base.JsonException