public function __construct($message = null, $code = 0) { if (!$message) { $message = "Client exception"; } parent::__construct($message, $code); }
public function __construct($type, array $values) { $message = 'Resource ' . $type . ' already duplicate for '; foreach ($values as $key => $value) { $message .= $key . ' = ' . $value . ' '; } parent::__construct($message); }
/** * custom constructor * * @access public * @param string namespace */ public function __construct($namespace) { $this->namespace = $namespace; parent::__construct('Unkown namespace "' . $namespace . '"'); }
/** * Short description of method __construct * * @access public * @author Cédric Alfonsi, <*****@*****.**> * @return mixed */ public function __construct() { parent::__construct(__('TAO is under maintenance')); }
/** * Create a new CompilationFailedException object. * * @param string $message A human-readable message describing the compilation error. * @param integer $code A computer-understandable code describing the compilation error. */ public function __construct($message, $code = 0) { parent::__construct($message, $code); }
public function __construct($parameter) { parent::__construct('Missing or invalid parameter ' . $parameter); }
/** * * @param unknown $queryString * @param unknown $userError */ public function __construct($queryString, $userError) { $this->query = $queryString; $this->error = $userError; parent::__construct('Error in query "' . $queryString . '": ' . $userError); }
/** * Create a new QtiTestServiceException object. * * @param string $message A technical infiormation message. * @param integer $code A code to explicitely identify the nature of the error. */ public function __construct($message) { parent::__construct($message); }
/** * Creates a new instance of ExtensionException. * * @access public * @author Jerome Bogaerts, <*****@*****.**> * @param string message * @param string extensionId * @return mixed */ public function __construct($message, $extensionId = 'unknown') { parent::__construct($message); $this->setExtensionId($extensionId); }
/** * Create a new QtiRunnerClosedException object. * * @param string $message A technical infiormation message. * @param integer $code A code to explicitely identify the nature of the error. */ public function __construct($message = 'The test has been suspended', $code = AssessmentTestSessionState::SUSPENDED) { parent::__construct($message, $code); }
/** * Create a new QtiRunnerClosedException object. * * @param string $message A technical infiormation message. * @param integer $code A code to explicitely identify the nature of the error. */ public function __construct($message = 'The test has been terminated', $code = AssessmentTestSessionState::CLOSED) { parent::__construct($message, $code); }
public function __construct($serviceKey) { parent::__construct('Service "' . $serviceKey . '" not found'); }
public function __construct($path) { $this->path = $path; parent::__construct('File ' . $path . ' not found'); }
public function __construct($message, $moduleName, $actionName) { parent::__construct($message); $this->moduleName = $moduleName; $this->actionName = $actionName; }
/** * Short description of method __construct * * @access public * @param core_kernel_classes_Resource resource * @param core_kernel_classes_Property property * @return mixed */ public function __construct(core_kernel_classes_Resource $resource, core_kernel_classes_Property $property) { $this->resource = $resource; $this->property = $property; parent::__construct('Property ( ' . $property->getUri() . ' ) of resource ' . ' ( ' . $resource->getUri() . ' ) has more than one value do not use getUniquePropertyValue but use getPropertyValue instead'); }
public function __construct($resourceId, $version) { parent::__construct('Version ' . $version . ' not found for resource ' . $resourceId); }
/** * Short description of method __construct * * @access public * @author Cédric Alfonsi, <*****@*****.**> * @param string path * @return mixed */ public function __construct($path = "") { $message = 'A file/folder already exists at the location (' . $path . ')'; parent::__construct($message); }
/** * Short description of method __construct * * @access public * @author Cédric Alfonsi, <*****@*****.**> * @param string method */ public function __construct($method = "") { $message = 'The following service (' . $method . ') is an Ajax service'; parent::__construct($message); }
public function __construct($resourceId, $revisionId) { parent::__construct('Revision ' . $revisionId . ' not found for resource ' . $resourceId); }
/** * @param string $file * @param array $errors */ public function __construct($file, $errors) { $this->errors = $errors; parent::__construct('Failed to validate ' . $file); }
public function __construct(Lock $lock) { parent::__construct('Resource ' . $lock->getResource()->getUri() . ' locked'); }