本文整理汇总了PHP中ezcGraphException类的典型用法代码示例。如果您正苦于以下问题:PHP ezcGraphException类的具体用法?PHP ezcGraphException怎么用?PHP ezcGraphException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ezcGraphException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @param int $type
* @return void
* @ignore
*/
public function __construct($type)
{
$typeName = array(1 => 'GIF', 2 => 'Jpeg', 3 => 'PNG', 4 => 'SWF', 5 => 'PSD', 6 => 'BMP', 7 => 'TIFF (intel)', 8 => 'TIFF (motorola)', 9 => 'JPC', 10 => 'JP2', 11 => 'JPX', 12 => 'JB2', 13 => 'SWC', 14 => 'IFF', 15 => 'WBMP', 16 => 'XBM');
if (isset($typeName[$type])) {
$type = $typeName[$type];
} else {
$type = 'Unknown';
}
parent::__construct("Unsupported image format '{$type}'.");
}
示例2: __construct
/**
* Constructor
*
* @param int $type
* @return void
* @ignore
*/
public function __construct($type)
{
$chartTypeNames = array(ezcGraph::PIE => 'Pie', ezcGraph::LINE => 'Line', ezcGraph::BAR => 'Bar');
if (isset($chartTypeNames[$type])) {
$chartTypeName = $chartTypeNames[$type];
} else {
$chartTypeName = 'Unknown';
}
parent::__construct("Invalid data set display type '{$type}' ('{$chartTypeName}') for current chart.");
}
示例3: __construct
/**
* Constructor
*
* @param string $file
* @param string $extension
* @return void
* @ignore
*/
public function __construct($file, $extension)
{
parent::__construct("Unknown font type '{$extension}' of file '{$file}'.");
}
示例4: __construct
/**
* Constructor
*
* @param int $rows
* @param int $columns
* @param int $dRows
* @param int $dColumns
* @return void
* @ignore
*/
public function __construct($rows, $columns, $dRows, $dColumns)
{
parent::__construct("Matrix '{$dRows}, {$dColumns}' is incompatible with matrix '{$rows}, {$columns}' for requested operation.");
}
示例5: __construct
/**
* Constructor
*
* @param mixed $driver
* @param string $accepted
* @return void
* @ignore
*/
public function __construct($driver, $accepted)
{
$driverClass = get_class($driver);
parent::__construct("Incompatible driver used. Driver '{$driverClass}' is not an instance of '{$accepted}'.");
}
示例6: __construct
/**
* Constructor
*
* @return void
* @ignore
*/
public function __construct()
{
parent::__construct("Flash can only read JPEGs and PNGs.");
}
示例7: __construct
/**
* Constructor
*
* @param mixed $definition
* @return void
* @ignore
*/
public function __construct($definition)
{
parent::__construct("Unknown color definition '{$definition}'.");
}
示例8: __construct
/**
* Constructor
*
* @param mixed $value
* @return void
* @ignore
*/
public function __construct($value)
{
$type = gettype($value);
parent::__construct("Could not parse date '{$value}' of type '{$type}'.");
}
示例9: __construct
/**
* Constructor
*
* @param string $message
* @return void
* @ignore
*/
public function __construct($message)
{
parent::__construct("You provided unusable data: '{$message}'.");
}
示例10: __construct
/**
* Constructor
*
* @param ezcGraphChart $chart
* @return void
* @ignore
*/
public function __construct($chart)
{
parent::__construct("Chart is not yet rendered.");
}
示例11: __construct
/**
* Constructor
*
* @param string $id
* @return void
* @ignore
*/
public function __construct($id)
{
parent::__construct("Could not find element with id '{$id}' in SVG document.");
}
示例12: __construct
/**
* Constructor
*
* @param string $name
* @return void
* @ignore
*/
public function __construct($name)
{
parent::__construct("No chart element with name '{$name}' found.");
}
示例13: __construct
/**
* Constructor
*
* @param string $message
* @return void
* @ignore
*/
public function __construct($message)
{
parent::__construct("Invalid step size on numeric axis: {$message}.");
}
示例14: __construct
/**
* Constructor
*
* @param string $name
* @return void
* @ignore
*/
public function __construct($name)
{
parent::__construct("No data with name '{$name}' found.");
}
示例15: __construct
/**
* Constructor
*
* @param mixed $value
* @return void
* @ignore
*/
public function __construct($value)
{
$type = gettype($value);
parent::__construct("The array dataset can only use arrays and iterators, but you supplied '{$type}'.");
}