-
Notifications
You must be signed in to change notification settings - Fork 0
/
annotation_exceptions.php
36 lines (29 loc) · 1.11 KB
/
annotation_exceptions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace AddendumPP;
use \Exception;
class CircularAnnotationReferenceException extends Exception {
public function __construct($annotationName) {
parent::__construct("Circular annotation reference encountered on '" . $annotationName . "'");
}
}
class InvalidPropertyException extends Exception {
public function __construct($annotationName, $propertyName) {
parent::__construct("Property '" . $propertyName . "' not defined for annotation '" . $annotationName . "'");
}
}
class NestingNotAllowedException extends Exception {
public function __construct($annotationName, $target) {
parent::__construct("Annotation '" . $annotationName . "' not allowed on " . $target);
}
}
class NoNestingAllowedException extends Exception {
public function __construct($annotationName) {
parent::__construct("Annotation '" . $annotationName . "' nesting not allowed");
}
}
class UnresolvedAnnotationException extends Exception {
public function __construct($annotationName) {
parent::__construct("Unresolved annotation encountered: @" . $annotationName);
}
}
?>