本文整理汇总了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));
}