@@ -22,11 +22,11 @@ public function __call($method, $args)
22
22
$ arr = strtolower (substr ($ method , 3 ));
23
23
24
24
if (!property_exists ($ this , '_ ' .$ arr ) || !is_array ($ this ->{'_ ' .$ arr })) {
25
- throw new \Gedcom \ Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
25
+ throw new \Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
26
26
}
27
27
28
28
if (!is_array ($ args )) {
29
- throw new \Gedcom \ Exception ('Incorrect arguments to ' .$ method );
29
+ throw new \Exception ('Incorrect arguments to ' .$ method );
30
30
}
31
31
32
32
if (!isset ($ args [0 ])) {
@@ -45,11 +45,11 @@ public function __call($method, $args)
45
45
$ arr = strtolower (substr ($ method , 3 ));
46
46
47
47
if (!property_exists ($ this , '_ ' .$ arr )) {
48
- throw new \Gedcom \ Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
48
+ throw new \Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
49
49
}
50
50
51
51
if (!is_array ($ args )) {
52
- throw new \Gedcom \ Exception ('Incorrect arguments to ' .$ method );
52
+ throw new \Exception ('Incorrect arguments to ' .$ method );
53
53
}
54
54
55
55
if (!isset ($ args [0 ])) {
@@ -70,7 +70,7 @@ public function __call($method, $args)
70
70
// hotfix getData
71
71
if ('data ' == $ arr ) {
72
72
if (!property_exists ($ this , '_text ' )) {
73
- throw new \Gedcom \ Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
73
+ throw new \Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
74
74
}
75
75
76
76
return $ this ->{'_text ' };
@@ -82,14 +82,14 @@ public function __call($method, $args)
82
82
83
83
return $ this ->{'_ ' .$ arr };
84
84
} else {
85
- throw new \Gedcom \ Exception ('Unknown method called: ' .$ method );
85
+ throw new \Exception ('Unknown method called: ' .$ method );
86
86
}
87
87
}
88
88
89
89
public function __set ($ var , $ val )
90
90
{
91
91
// this class does not have any public vars
92
- throw new \Gedcom \ Exception ('Undefined property ' .self ::class.':: ' .$ var );
92
+ throw new \Exception ('Undefined property ' .self ::class.':: ' .$ var );
93
93
}
94
94
95
95
/**
0 commit comments