function AnnotationException::typeError

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

Creates a new AnnotationException describing a type error.

Return value

AnnotationException

2 calls to AnnotationException::typeError()
AnnotationException::attributeTypeError in core/lib/Drupal/Component/Annotation/Doctrine/AnnotationException.php
Creates a new AnnotationException describing an type error of an attribute.
AnnotationException::requiredError in core/lib/Drupal/Component/Annotation/Doctrine/AnnotationException.php
Creates a new AnnotationException describing an required error of an attribute.

File

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

Class

AnnotationException
Description of AnnotationException

Namespace

Drupal\Component\Annotation\Doctrine

Code

public static function typeError(string $message) {
  return new self('[Type Error] ' . $message);
}

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