public static function looksValidationy(RemoteException $prev)
    {
        $json = $prev->getJsonResponse();
        if ($prev->httpStatus == 400 && $json) {
            if (empty($json->version) || empty($json->errors) || empty($json->errors->message)) {
                return false;
            } else {
                return true;
            }
        } else {
            return false;
        }
    }
public static function looksValidationy(RemoteException $prev)
    {
        $json = $prev->getJsonResponse();
        if ($prev->httpStatus == 400 && $json) {
            if (empty($json->version) || empty($json->errors) || empty($json->errors->message)) {
                return false;
            } else {
                return true;
            }
        } else {
            return false;
        }
    }
public static function looksValidationy ( RemoteException $ prev ) { $ json = $ prev -> getJsonResponse ( ) ; if ( $ prev -> httpStatus == 400 && $ json ) { if ( empty ( $ json -> version ) || empty ( $ json -> errors ) || empty ( $ json -> errors -> message ) ) { return false ; } else { return true ; } } else { return false ; } }
Determine if a response looks like a validation error

@param RemoteException $prev the original exception
@return bool whether or not it looks like a validation error
Determine if a response looks like a validation error