本文整理汇总了PHP中ezcBaseException类的典型用法代码示例。如果您正苦于以下问题:PHP ezcBaseException类的具体用法?PHP ezcBaseException怎么用?PHP ezcBaseException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ezcBaseException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Creates a new ezcImageTransformationException using a parent exception.
* Creates a new ezcImageTransformationException and appends an existing
* exception to it. The ezcImageTransformationException is just the catch-
* all container. The parent is stored for logging/debugging purpose.
*
* @param ezcBaseException $e Any exception that may occur during
* transformation.
*/
public function __construct(ezcBaseException $e)
{
$this->parent = $e;
$message = $e->getMessage();
parent::__construct("Transformation failed. '{$message}'.");
}
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:15,代码来源:transformation.php
示例2:
/**
* Constructs a new eZDFSFileHandlerTableNotFoundException
*
* @param string $sql The SQL query
* @param string $error The SQL error message
* @return void
*/
function __construct( $sql, $error )
{
$message = "Table not found when executing SQL '$sql' ".
"(error message: $error).\n" .
"Please review the cluster tables installation or configuration";
parent::__construct( $message );
}
开发者ID:robinmuilwijk,项目名称:ezpublish,代码行数:14,代码来源:table_not_found.php
示例3: array
/**
* Constructs a new ezcBaseAutoloadException for the $className that was
* searched for in the autoload files $fileNames from the directories
* specified in $dirs.
*
* @param string $className
* @param array(string) $files
* @param array(ezcBaseRepositoryDirectory) $dirs
*/
function __construct($className, $files, $dirs)
{
$paths = array();
foreach ($dirs as $dir) {
$paths[] = realpath($dir->autoloadPath);
}
parent::__construct("Could not find a class to file mapping for '{$className}'. Searched for " . implode(', ', $files) . " in: " . implode(', ', $paths));
}
开发者ID:fobiaweb,项目名称:ezc-base,代码行数:17,代码来源:autoload.php
示例4:
/**
* Constructs a new ezcBaseExtensionNotFoundException.
*
* @param string $name The name of the extension
* @param string $version The version of the extension
* @param string $message Additional text
*/
function __construct($name, $version = null, $message = null)
{
if ($version === null) {
parent::__construct("The extension '{$name}' could not be found. {$message}");
} else {
parent::__construct("The extension '{$name}' with version '{$version}' could not be found. {$message}");
}
}
开发者ID:kidaa30,项目名称:yes,代码行数:15,代码来源:extension_not_found.php
示例5: gettype
/**
* Constructs a new ezcBaseValueException on the $name variable.
*
* @param string $settingName The name of the setting where something was
* wrong with.
* @param mixed $value The value that the option was tried to be set too.
* @param string $expectedValue A string explaining the allowed type and value range.
* @param string $variableType What type of variable was tried to be set (setting, argument).
*/
function __construct($settingName, $value, $expectedValue = null, $variableType = 'setting')
{
$type = gettype($value);
if (in_array($type, array('array', 'object', 'resource'))) {
$value = serialize($value);
}
$msg = "The value '{$value}' that you were trying to assign to {$variableType} '{$settingName}' is invalid.";
if ($expectedValue) {
$msg .= " Allowed values are: " . $expectedValue . '.';
}
parent::__construct($msg);
}
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:21,代码来源:value.php
示例6: __construct
/**
* Constructs a new ezcLogWriterException with the original exception $e.
*
* @param Exception $e
*/
public function __construct(Exception $e)
{
$this->exception = $e;
parent::__construct($e->getMessage());
}
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:10,代码来源:writer_exception.php
示例7:
/**
* Constructs a new ezcBaseWhateverException.
*
* @param string $what What happened?
* @param string $where Where did it happen?
* @param string $who Who is responsible?
* @param string $why Why did is happen?
* @access protected
* @return void
*/
function __construct($what, $where, $who, $why)
{
parent::__construct("Thanks for using eZ components. Hope you like it! Greetings from Amos, Derick, El Frederico, Ray and Toby.");
}
开发者ID:Sajaki,项目名称:customisation-db,代码行数:14,代码来源:whatever.php
示例8:
/**
* Constructs a new eZDFSFileHandlerNFSMountPointNotFoundException
*
* @param string $path the mount point path
* @return void
*/
function __construct($path)
{
parent::__construct("Local DFS mount point '{$path}' is not writeable");
}
开发者ID:runelangseid,项目名称:ezpublish,代码行数:10,代码来源:mount_point_not_writeable.php
示例9: __construct
public function __construct($itemType, $itemValue)
{
$this->itemType = $itemType;
$this->itemValue = $itemValue;
parent::__construct("The requested {$itemType} item with ID {$itemValue} was not found");
}
开发者ID:bdunogier,项目名称:tcl,代码行数:6,代码来源:scraper_not_found.php
示例10: __construct
public function __construct($url, $body)
{
$this->url = $url;
$this->body = $body;
parent::__construct("An error occured while parsing the fetched HTML");
}
开发者ID:bdunogier,项目名称:tcl,代码行数:6,代码来源:scraper_html.php
示例11: __construct
/**
* Constructs a new ezcLogWrongSeverityException for severity $severity
*
* @param string $severity
*/
public function __construct($severity)
{
parent::__construct("There is no severity named '{$severity}'.");
}
开发者ID:jacomyma,项目名称:GEXF-Atlas,代码行数:9,代码来源:wrong_severity.php
示例12:
/**
* Constructs a new ezcReflectionCallToUndefinedMethodException.
*
* @param string $class
* @param string $method
* @return void
*/
function __construct($class, $method)
{
// TODO One could obtain a stacktrace and report file and line of the invocation
parent::__construct("Call to undefined method '{$class}::{$method}'.");
}
开发者ID:naderman,项目名称:ezc-reflection,代码行数:12,代码来源:call_to_undefined_method.php
示例13: __construct
public function __construct( $url, $http_response_headers )
{
$this->url = $url;
$this->http_response_headers = $http_response_headers;
parent::__construct( "An HTTP error code was returned while fetching URL '$url'. Response headers: " . print_r( $http_response_headers, true ) );
}
开发者ID:rangulicon,项目名称:mkvmanager,代码行数:6,代码来源:scraper_http.php
示例14:
/**
* Constructs a new ezcBaseSettingNotFoundException for $settingName.
*
* @param string $settingName The name of the setting that does not exist.
*/
function __construct($settingName)
{
parent::__construct("The setting '{$settingName}' is not a valid configuration setting.");
}
开发者ID:corcre,项目名称:elabftw,代码行数:9,代码来源:setting_not_found.php
示例15:
/**
* Constructs a new ezcBaseDoubleClassRepositoryPrefixException for the
* $prefix that points to $basePath with autoload directory
* $autoloadDirPath.
*
* @param string $prefix
* @param string $basePath
* @param string $autoloadDirPath
*/
function __construct($prefix, $basePath, $autoloadDirPath)
{
parent::__construct("The class repository in '{$basePath}' (with autoload dir '{$autoloadDirPath}') can not be added because another class repository already uses the prefix '{$prefix}'.");
}
开发者ID:jkimdon,项目名称:cohomeals,代码行数:13,代码来源:double_class_repository_prefix.php
示例16:
/**
* Constructs a new eZDFSFileHandlerNFSMountPointNotFoundException
*
* @param string $host The hostname
* @param string $user The username
* @param string $pass The password (will be displayed as *)
* @return void
*/
function __construct($path)
{
parent::__construct("Local DFS mount point '{$path}' does not exist");
}
开发者ID:EVE-Corp-Center,项目名称:ECC-Website,代码行数:12,代码来源:mount_point_not_found.php
示例17: __construct
/**
* Constructs a new ymcDatatypeException with message $msg.
*
* @param string $msg Error message.
*/
public function __construct($msg)
{
parent::__construct($msg);
}
开发者ID:kmajkowski,项目名称:ymc-ezp-datatypes,代码行数:9,代码来源:ymcdatatype.php
示例18:
/**
* Constructs a new ezcBasePropertyNotFoundException for the property
* $name.
*
* @param string $name The name of the property
*/
function __construct($name)
{
parent::__construct("No such property name '{$name}'.");
}
开发者ID:corcre,项目名称:elabftw,代码行数:10,代码来源:property_not_found.php
示例19: __construct
public function __construct($url, $http_response_headers)
{
$this->url = $url;
$this->http_response_headers = $http_response_headers;
parent::__construct("An HTTP error code was returned while fetching URL '{$url}'");
}
开发者ID:bdunogier,项目名称:tcl,代码行数:6,代码来源:scraper_http.php
示例20:
/**
* Constructs a new ezcBaseInitInvalidCallbackClassException for the $callbackClass.
*
* @param string $callbackClass
* @return void
*/
function __construct($callbackClass)
{
parent::__construct("Class '{$callbackClass}' does not exist, or does not implement the 'ezcBaseConfigurationInitializer' interface.");
}
开发者ID:rootfs,项目名称:robinhood,代码行数:10,代码来源:invalid_callback_class.php
注:本文中的ezcBaseException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论