Description of AnnotationException
- Full name:
\Doctrine\Common\Annotations\AnnotationException
- Parent class:
Exception
Creates a new AnnotationException describing a Syntax error.
public static syntaxError(string $message): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | Exception message |
Creates a new AnnotationException describing a Semantical error.
public static semanticalError(string $message): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | Exception message |
Creates a new AnnotationException describing an error which occurred during the creation of the annotation.
public static creationError(string $message, ?\Throwable $previous = null): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | |
$previous |
?\Throwable |
Creates a new AnnotationException describing a type error.
public static typeError(string $message): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string |
Creates a new AnnotationException describing a constant semantical error.
public static semanticalErrorConstants(string $identifier, string $context = null): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$identifier |
string | |
$context |
string |
Creates a new AnnotationException describing an type error of an attribute.
public static attributeTypeError(string $attributeName, string $annotationName, string $context, string $expected, mixed $actual): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$attributeName |
string | |
$annotationName |
string | |
$context |
string | |
$expected |
string | |
$actual |
mixed |
Creates a new AnnotationException describing an required error of an attribute.
public static requiredError(string $attributeName, string $annotationName, string $context, string $expected): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$attributeName |
string | |
$annotationName |
string | |
$context |
string | |
$expected |
string |
Creates a new AnnotationException describing a invalid enummerator.
public static enumeratorError(string $attributeName, string $annotationName, string $context, mixed $available, mixed $given): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$attributeName |
string | |
$annotationName |
string | |
$context |
string | |
$available |
mixed | |
$given |
mixed |
public static optimizerPlusSaveComments(): \Doctrine\Common\Annotations\AnnotationException
- This method is static.
public static optimizerPlusLoadComments(): \Doctrine\Common\Annotations\AnnotationException
- This method is static.