1 | <?php namespace BuildR\ClassLoader\Exception; |
||
20 | class ModuleException extends Exception { |
||
21 | |||
22 | const MESSAGE_MODULE_INVALID = "Invalid Class Loader Module!"; |
||
23 | |||
24 | const MESSAGE_MODULE_NOT_FOUND = "The given class loader not found!"; |
||
25 | |||
26 | /** |
||
27 | * @type string |
||
28 | */ |
||
29 | private $moduleClass; |
||
30 | |||
31 | public static function invalid($moduleClass) { |
||
34 | |||
35 | public static function notFound($moduleClass) { |
||
38 | |||
39 | public function __construct($message = "", $className, $code = 0, Exception $previous = NULL) { |
||
40 | $this->moduleClass = $className; |
||
41 | |||
42 | parent::__construct($message, $code, $previous); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Return the module FQCN. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getModuleClass() { |
||
53 | |||
54 | } |
||
55 |