Skip to content

Latest commit

 

History

History
282 lines (121 loc) · 4.16 KB

AnnotationException.md

File metadata and controls

282 lines (121 loc) · 4.16 KB

AnnotationException

Description of AnnotationException

  • Full name: \Doctrine\Common\Annotations\AnnotationException
  • Parent class: Exception

Methods

syntaxError

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

semanticalError

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

creationError

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

typeError

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

semanticalErrorConstants

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

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): \Doctrine\Common\Annotations\AnnotationException
  • This method is static.

Parameters:

Parameter Type Description
$attributeName string
$annotationName string
$context string
$expected string
$actual mixed

requiredError

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

enumeratorError

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

optimizerPlusSaveComments

public static optimizerPlusSaveComments(): \Doctrine\Common\Annotations\AnnotationException
  • This method is static.

optimizerPlusLoadComments

public static optimizerPlusLoadComments(): \Doctrine\Common\Annotations\AnnotationException
  • This method is static.