public function getValidationMessage()
    {
        $json = $this->getJsonResponse();
        if ($json && $json->errors && $json->errors->message) {
            return $json->errors->message;
        } else {
            return 'Unknown validation error';
        }
    }
public function getValidationMessage()
    {
        $json = $this->getJsonResponse();
        if ($json && $json->errors && $json->errors->message) {
            return $json->errors->message;
        } else {
            return 'Unknown validation error';
        }
    }
public function getValidationMessage ( ) { $ json = $ this -> getJsonResponse ( ) ; if ( $ json && $ json -> errors && $ json -> errors -> message ) { return $ json -> errors -> message ; } else { return 'Unknown validation error' ; } }
Get the validation error message

@return string the validation error message
Get the validation error message