本文整理匯總了PHP中sfException::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP sfException::__construct方法的具體用法?PHP sfException::__construct怎麽用?PHP sfException::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sfException
的用法示例。
在下文中一共展示了sfException::__construct方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Class constructor.
*
* @param string The error message
* @param int The error code
*/
public function __construct($message = null, $code = 0)
{
if ($this->getName() === null) {
$this->setName('deppPropelActAsLaunchableException');
}
parent::__construct($message, $code);
}
開發者ID:valerio-bozzolan,項目名稱:openparlamento,代碼行數:13,代碼來源:deppPropelActAsLaunchableException.class.php
示例2: __construct
/**
* Class constructor.
*
* @param string The error message
* @param int The error code
*/
public function __construct($message = null, $code = 0)
{
if (method_exists($this, 'setName')) {
$this->setName('sfWebBrowserInvalidResponseException');
}
parent::__construct($message, $code);
}
示例3: __construct
public function __construct($code, $message, $file, $line, $context = null)
{
parent::__construct($message, $code);
$this->context = $context;
$this->file = $file;
$this->line = $line;
}
示例4: __construct
/**
* Class constructor.
*
* @param string error message
* @param int error code
*/
public function __construct($message = null, $code = 0)
{
// Legacy support for 1.0
if (method_exists($this, 'setName')) {
$this->setName('sfImageTransformException');
}
parent::__construct($message, $code);
}
示例5: __construct
/**
* Class constructor.
*
* @param string the error message
* @param int the error code
*/
public function __construct($message = null, $code = 0)
{
// jme- removed this function. it doesnt exist
// - in sfExceptions.php you can find
// - name = get_class($exception);
// $this->setName('sfDateTimeException');
parent::__construct($message, $code);
}
示例6: __construct
/**
* Class constructor.
*
* @param string The error message
* @param int The error code
*/
public function __construct($message = null, $code = 0)
{
$this->setName('sfStopException');
// disable xdebug to avoid backtrace in error log
if (function_exists('xdebug_disable')) {
xdebug_disable();
}
parent::__construct($message, $code);
}
示例7: __construct
/**
*
*/
public function __construct($message = null, $http_error_code = 0)
{
$this->setName('HttpException');
try {
sfContext::getInstance()->getLogger()->err($message);
} catch (Exception $e) {
}
parent::__construct($message, $http_error_code);
}
示例8: __construct
/**
* Class constructor.
*
* @param string The error message
* @param int The error code
*/
public function __construct($message = null, $code = 0)
{
parent::__construct($message, $code);
$this->setName('sfContextException');
}
示例9: __construct
/**
* Class constructor.
*
* @param string The error message
* @param int The error code
*/
public function __construct($message = null, $code = 0)
{
$this->setName('sfError404Exception');
parent::__construct($message, $code);
}
示例10: __construct
public function __construct($message = null, $message_params = array(), $code = 0)
{
$this->setMessageParams($message_params);
parent::__construct($message, $code);
}
示例11:
function __construct($token, $message)
{
$this->token = @$token;
parent::__construct($message . (@$token ? " - [{$token}]\n" : ''));
}
示例12: __construct
public function __construct($message = null, $code = 0)
{
$this->setName('sfDoctrineSchemaException');
parent::__construct($message, $code);
}
示例13: __construct
public function __construct($message = 'diem exception')
{
return parent::__construct(strip_tags($message));
}