Example #1
0
 function __construct($exception, $missing_param = null)
 {
     parent::__construct("bong.syetem.InvalidException", 500);
     $this->registerParam(new BongExceptionParam("exception", "Exception Thrown", true));
     $this->registerParam(new BongExceptionParam("missing", "Missing Params", false));
     $this->setParam("exception", $exception);
     $this->setParam("missing", $missing_param);
 }
Example #2
0
 public function __construct($file, $exceptionExtension, $errCode, $errMsg, $fileException = true)
 {
     $this->errMsg = $errMsg;
     $this->_fileException = $fileException;
     parent::__construct("bong.util." . ($this->_fileException ? 'file' : 'dir') . "." . $exceptionExtension, $errCode);
     $this->registerParam(new BongExceptionParam("filePath", "File Path", false));
     $this->setParam("filePath", $file);
 }
Example #3
0
 public function __construct($moduleName, $exceptionName, $exceptionCode)
 {
     parent::__construct($exceptionName, $exceptionCode);
     $this->registerParam(new BongExceptionParam("module", "Module", true));
     $this->registerParam(new BongExceptionParam("modulePath", "Module Path", true));
     $module = new ModuleMeta($moduleName);
     $this->module = $moduleName;
     $this->modulePath = $module->modulePath;
 }
Example #4
0
 public function __construct($methodName, $controllerName, $projectName)
 {
     parent::__construct('bong.mvc.app.MethodNotFound', '40413');
     $this->registerParam(new BongExceptionParam('controllerName', 'Controller Name', true));
     $this->registerParam(new BongExceptionParam('projectName', 'project Name', true));
     $this->registerParam(new BongExceptionParam('methodName', 'method Name', true));
     $this->setParam('controllerName', $controllerName);
     $this->setParam('methodName', $methodName);
     $this->setParam('projectName', $projectName);
 }
Example #5
0
 public function __construct($url)
 {
     parent::__construct("bong.syetem.MalformedUrl", 420);
     $this->registerParam(new BongExceptionParam("url", "Requested Url", true));
     $this->setParam("url", $url);
 }
Example #6
0
 public function __construct($hierarchy, $errCode)
 {
     parent::__construct($hierarchy, $errCode);
 }