Skip to content

Commit

Permalink
Exceptions package
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Sep 19, 2011
1 parent 43dea93 commit 5d79cd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/packages/TDTInfo/Exceptions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ public function call() {

$classes = get_declared_classes();
foreach($classes as $class) {
if(is_subclass_of($class, "AbstractTDTException")) {
if(is_subclass_of($class, "AbstractTDTException") && get_parent_class($class) != "AbstractTDTException") {
$e = new stdClass();
$e->code = $class::getErrorCode();
$e->doc = $class::getDoc();
$e->type = get_parent_class($class);
$o->Exceptions[$class] = $e;
}
}
Expand Down

0 comments on commit 5d79cd1

Please sign in to comment.