@@ -22,11 +22,11 @@ public function __call($method, $args)
2222 $ arr = strtolower (substr ($ method , 3 ));
2323
2424 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 );
2626 }
2727
2828 if (!is_array ($ args )) {
29- throw new \Gedcom \ Exception ('Incorrect arguments to ' .$ method );
29+ throw new \Exception ('Incorrect arguments to ' .$ method );
3030 }
3131
3232 if (!isset ($ args [0 ])) {
@@ -45,11 +45,11 @@ public function __call($method, $args)
4545 $ arr = strtolower (substr ($ method , 3 ));
4646
4747 if (!property_exists ($ this , '_ ' .$ arr )) {
48- throw new \Gedcom \ Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
48+ throw new \Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
4949 }
5050
5151 if (!is_array ($ args )) {
52- throw new \Gedcom \ Exception ('Incorrect arguments to ' .$ method );
52+ throw new \Exception ('Incorrect arguments to ' .$ method );
5353 }
5454
5555 if (!isset ($ args [0 ])) {
@@ -70,7 +70,7 @@ public function __call($method, $args)
7070 // hotfix getData
7171 if ('data ' == $ arr ) {
7272 if (!property_exists ($ this , '_text ' )) {
73- throw new \Gedcom \ Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
73+ throw new \Exception ('Unknown ' .$ this ::class.':: ' .$ arr );
7474 }
7575
7676 return $ this ->{'_text ' };
@@ -82,14 +82,14 @@ public function __call($method, $args)
8282
8383 return $ this ->{'_ ' .$ arr };
8484 } else {
85- throw new \Gedcom \ Exception ('Unknown method called: ' .$ method );
85+ throw new \Exception ('Unknown method called: ' .$ method );
8686 }
8787 }
8888
8989 public function __set ($ var , $ val )
9090 {
9191 // 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 );
9393 }
9494
9595 /**
0 commit comments