PayWithAmazon\Client::getErrorMessageForJsonError PHP Method

getErrorMessageForJsonError() private method

* Convert a json error code to a descriptive error message
private getErrorMessageForJsonError ( $jsonError )
$jsonError message code
    private function getErrorMessageForJsonError($jsonError)
    {
        switch ($jsonError) {
            case JSON_ERROR_DEPTH:
                return " - maximum stack depth exceeded.";
                break;
            case JSON_ERROR_STATE_MISMATCH:
                return " - invalid or malformed JSON.";
                break;
            case JSON_ERROR_CTRL_CHAR:
                return " - control character error.";
                break;
            case JSON_ERROR_SYNTAX:
                return " - syntax error.";
                break;
            default:
                return ".";
                break;
        }
    }