Documentation

AnnotationException extends Exception
in package

Description of AnnotationException

Table of Contents

attributeTypeError()  : AnnotationException
Creates a new AnnotationException describing an type error of an attribute.
creationError()  : AnnotationException
Creates a new AnnotationException describing an error which occurred during the creation of the annotation.
enumeratorError()  : AnnotationException
Creates a new AnnotationException describing a invalid enummerator.
optimizerPlusLoadComments()  : AnnotationException
optimizerPlusSaveComments()  : AnnotationException
requiredError()  : AnnotationException
Creates a new AnnotationException describing an required error of an attribute.
semanticalError()  : AnnotationException
Creates a new AnnotationException describing a Semantical error.
semanticalErrorConstants()  : AnnotationException
Creates a new AnnotationException describing a constant semantical error.
syntaxError()  : AnnotationException
Creates a new AnnotationException describing a Syntax error.
typeError()  : AnnotationException
Creates a new AnnotationException describing a type error.

Methods

attributeTypeError()

Creates a new AnnotationException describing an type error of an attribute.

public static attributeTypeError(string $attributeName, string $annotationName, string $context, string $expected, mixed $actual) : AnnotationException
Parameters
$attributeName : string
$annotationName : string
$context : string
$expected : string
$actual : mixed
Return values
AnnotationException

creationError()

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

public static creationError(string $message[, Throwable|null $previous = null ]) : AnnotationException
Parameters
$message : string
$previous : Throwable|null = null
Return values
AnnotationException

enumeratorError()

Creates a new AnnotationException describing a invalid enummerator.

public static enumeratorError(string $attributeName, string $annotationName, string $context, mixed $available, mixed $given) : AnnotationException
Parameters
$attributeName : string
$annotationName : string
$context : string
$available : mixed
$given : mixed
Tags
phpstan-param

list $available

Return values
AnnotationException

requiredError()

Creates a new AnnotationException describing an required error of an attribute.

public static requiredError(string $attributeName, string $annotationName, string $context, string $expected) : AnnotationException
Parameters
$attributeName : string
$annotationName : string
$context : string
$expected : string
Return values
AnnotationException

semanticalErrorConstants()

Creates a new AnnotationException describing a constant semantical error.

public static semanticalErrorConstants(string $identifier[, string $context = null ]) : AnnotationException
Parameters
$identifier : string
$context : string = null
Return values
AnnotationException

Search results