protected function throwValidationException(string $message, string $prefix = null)
    {
        throw new ValidationException($message, $this->name, $prefix);
    }
protected function throwValidationException(string $message, string $prefix = null)
    {
        throw new ValidationException($message, $this->name, $prefix);
    }
protected function throwValidationException ( string $ message , string $ prefix = null ) { throw new ValidationException ( $ message , $ this -> name , $ prefix ) ; }
Throws a validation exception.

@param string $message
@param string $prefix

@throws ValidationException
Throws a validation exception .