function AnnotationException::creationError

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Annotation/Doctrine/AnnotationException.php \Drupal\Component\Annotation\Doctrine\AnnotationException::creationError()

Creates a new AnnotationException describing an error which occurred during the creation of the annotation.

Return value

AnnotationException

1 call to AnnotationException::creationError()
DocParser::Annotation in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…

File

core/lib/Drupal/Component/Annotation/Doctrine/AnnotationException.php, line 69

Class

AnnotationException
Description of AnnotationException

Namespace

Drupal\Component\Annotation\Doctrine

Code

public static function creationError(string $message, ?Throwable $previous = null) {
  return new self('[Creation Error] ' . $message, 0, $previous);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.