public static function AnnotationException::syntaxError

Creates a new AnnotationException describing a Syntax error.

Parameters

string $message Exception message:

Return value

AnnotationException

1 call to AnnotationException::syntaxError()
DocParser::syntaxError in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/DocParser.php
Generates a new syntax error.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationException.php, line 39

Class

AnnotationException
Description of AnnotationException

Namespace

Doctrine\Common\Annotations

Code

public static function syntaxError($message) {
  return new self('[Syntax Error] ' . $message);
}