/** * * @param string $localeCode */ public function __construct($localeCode) { parent::__construct('Locale ' . $localeCode . ' is not defined in this Zibo installation'); }
/** * Constructs a new exception * @param string $namespace The namespace of the requested module * @param string $name The name of the requested module * @return null */ public function __construct($namespace, $name) { parent::__construct('Module ' . $name . ' from namespace ' . $namespace . ' not found'); }
/** * Constructs a new invalid response exception * @param string $responseString The string of the response, should be an XML string * @param Exception $previous The exception causing this one */ public function __construct($responseString, Exception $previous = null) { parent::__construct('Invalid response recieved', 2, $previous); $this->responseString = $responseString; }
/** * Constructs a new module exception * @param zibo\admin\model\Module $module * @param string $message * @param int $code * @param Exception $previousException * @return null */ public function __construct(Module $module, $message = null, $code = 0, Exception $previousException = null) { $this->module = $module; parent::__construct($message, $code, $previousException); }
/** * Constructs a new exception * @param zibo\library\filesystem\File $path Path of the module without a module definition * @return null */ public function __construct(File $path) { parent::__construct('No module definition found in ' . $path->getPath()); }
/** * Construct this exception */ public function __construct($message = 'Validation errors occured') { parent::__construct($message); }