class AnnotationException extends Exception (View source)

Description of AnnotationException

Methods

syntaxError(string $message)

Creates a new AnnotationException describing a Syntax error.

semanticalError(string $message)

Creates a new AnnotationException describing a Semantical error.

creationError(string $message)

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

typeError(string $message)

Creates a new AnnotationException describing a type error.

semanticalErrorConstants(string $identifier, string $context = null)

Creates a new AnnotationException describing a constant semantical error.

attributeTypeError(string $attributeName, string $annotationName, string $context, string $expected, mixed $actual)

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

requiredError(string $attributeName, string $annotationName, string $context, string $expected)

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

enumeratorError(string $attributeName, string $annotationName, string $context, array $available, mixed $given)

Creates a new AnnotationException describing a invalid enummerator.

Details

static AnnotationException syntaxError(string $message)

Creates a new AnnotationException describing a Syntax error.

Parameters

string $message Exception message

Return Value

AnnotationException

static AnnotationException semanticalError(string $message)

Creates a new AnnotationException describing a Semantical error.

Parameters

string $message Exception message

Return Value

AnnotationException

static AnnotationException creationError(string $message)

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

Parameters

string $message

Return Value

AnnotationException

static AnnotationException typeError(string $message)

Creates a new AnnotationException describing a type error.

Parameters

string $message

Return Value

AnnotationException

static AnnotationException semanticalErrorConstants(string $identifier, string $context = null)

Creates a new AnnotationException describing a constant semantical error.

Parameters

string $identifier
string $context

Return Value

AnnotationException

static AnnotationException attributeTypeError(string $attributeName, string $annotationName, string $context, string $expected, mixed $actual)

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

Parameters

string $attributeName
string $annotationName
string $context
string $expected
mixed $actual

Return Value

AnnotationException

static AnnotationException requiredError(string $attributeName, string $annotationName, string $context, string $expected)

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

Parameters

string $attributeName
string $annotationName
string $context
string $expected

Return Value

AnnotationException

static AnnotationException enumeratorError(string $attributeName, string $annotationName, string $context, array $available, mixed $given)

Creates a new AnnotationException describing a invalid enummerator.

Parameters

string $attributeName
string $annotationName
string $context
array $available
mixed $given

Return Value

AnnotationException

static AnnotationException optimizerPlusSaveComments()

Return Value

AnnotationException

static AnnotationException optimizerPlusLoadComments()

Return Value

AnnotationException