Skip to content

Commit

Permalink
refactor search a little and add much better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 14, 2023
1 parent df0a8c2 commit a5c6f13
Show file tree
Hide file tree
Showing 23 changed files with 902 additions and 601 deletions.
6 changes: 5 additions & 1 deletion core/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ protected function set_version(string $name, int $ver)
}
}

class ExtensionNotFound extends SCoreException
{
}

enum ExtensionVisibility
{
case DEFAULT;
Expand Down Expand Up @@ -235,7 +239,7 @@ public static function get_for_extension_class(string $base): ExtensionInfo
return self::$all_info_by_class[$normal];
} else {
$infos = print_r(array_keys(self::$all_info_by_class), true);
throw new SCoreException("$normal not found in {$infos}");
throw new ExtensionNotFound("$normal not found in {$infos}");
}
}

Expand Down
Loading

0 comments on commit a5c6f13

Please sign in to comment.