summaryrefslogtreecommitdiffstats
path: root/src/exceptions
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-27 08:33:20 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-27 08:33:20 +0000
commit50e3d65302d7515cee6b2a677d16bc59d4cf4c8a (patch)
treed5d66c0266dd32f74e5980be60f34264c00d01b8 /src/exceptions
parent7a61ce43114fbf358b2d0aed2441ba3cefc10196 (diff)
downloadzetacomponents-graph-50e3d65302d7515cee6b2a677d16bc59d4cf4c8a.zip
zetacomponents-graph-50e3d65302d7515cee6b2a677d16bc59d4cf4c8a.tar.gz
- Fixed: Let all exceptions extend basic abstract ezcGraph exception
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/exception.php20
-rw-r--r--src/exceptions/invalid_driver.php2
-rw-r--r--src/exceptions/invalid_font.php2
-rw-r--r--src/exceptions/invalid_image_file.php2
-rw-r--r--src/exceptions/invalid_renderer.php2
-rw-r--r--src/exceptions/no_such_data.php2
-rw-r--r--src/exceptions/no_such_dataset.php2
-rw-r--r--src/exceptions/too_many_datasets.php2
-rw-r--r--src/exceptions/unknown_chart_type.php2
-rw-r--r--src/exceptions/unknown_color_definition.php2
-rw-r--r--src/exceptions/unknown_dataset_source.php2
-rw-r--r--src/exceptions/unknown_palette.php2
-rw-r--r--src/exceptions/unsupported_image_type.php2
13 files changed, 32 insertions, 12 deletions
diff --git a/src/exceptions/exception.php b/src/exceptions/exception.php
new file mode 100644
index 0000000..06f3b3c
--- /dev/null
+++ b/src/exceptions/exception.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Base exception for the Graph package.
+ *
+ * @package Graph
+ * @version //autogen//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+
+/**
+ * General exception container for the Graph component.
+ *
+ * @package Graph
+ * @version //autogen//
+ */
+abstract class ezcGraphException extends ezcBaseException
+{
+}
+?>
diff --git a/src/exceptions/invalid_driver.php b/src/exceptions/invalid_driver.php
index f415122..2205bbb 100644
--- a/src/exceptions/invalid_driver.php
+++ b/src/exceptions/invalid_driver.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphInvalidDriverException extends ezcBaseException
+class ezcGraphInvalidDriverException extends ezcGraphException
{
public function __construct( $driver )
{
diff --git a/src/exceptions/invalid_font.php b/src/exceptions/invalid_font.php
index 8717152..4507c00 100644
--- a/src/exceptions/invalid_font.php
+++ b/src/exceptions/invalid_font.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphGdDriverInvalidFontException extends ezcBaseException
+class ezcGraphGdDriverInvalidFontException extends ezcGraphException
{
public function __construct( $font )
{
diff --git a/src/exceptions/invalid_image_file.php b/src/exceptions/invalid_image_file.php
index f229928..87de717 100644
--- a/src/exceptions/invalid_image_file.php
+++ b/src/exceptions/invalid_image_file.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphInvalidImageFileException extends ezcBaseException
+class ezcGraphInvalidImageFileException extends ezcGraphException
{
public function __construct( $image )
{
diff --git a/src/exceptions/invalid_renderer.php b/src/exceptions/invalid_renderer.php
index eea0b07..59b576d 100644
--- a/src/exceptions/invalid_renderer.php
+++ b/src/exceptions/invalid_renderer.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphInvalidRendererException extends ezcBaseException
+class ezcGraphInvalidRendererException extends ezcGraphException
{
public function __construct( $renderer )
{
diff --git a/src/exceptions/no_such_data.php b/src/exceptions/no_such_data.php
index 11a7f4a..a6d4315 100644
--- a/src/exceptions/no_such_data.php
+++ b/src/exceptions/no_such_data.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphNoSuchDataException extends ezcBaseException
+class ezcGraphNoSuchDataException extends ezcGraphException
{
public function __construct( $name )
{
diff --git a/src/exceptions/no_such_dataset.php b/src/exceptions/no_such_dataset.php
index fb63e3b..1346b3b 100644
--- a/src/exceptions/no_such_dataset.php
+++ b/src/exceptions/no_such_dataset.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphNoSuchDatasetException extends ezcBaseException
+class ezcGraphNoSuchDatasetException extends ezcGraphException
{
public function __construct( $name )
{
diff --git a/src/exceptions/too_many_datasets.php b/src/exceptions/too_many_datasets.php
index d8fbc2b..89e41b6 100644
--- a/src/exceptions/too_many_datasets.php
+++ b/src/exceptions/too_many_datasets.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphTooManyDatasetsExceptions extends ezcBaseException
+class ezcGraphTooManyDatasetsExceptions extends ezcGraphException
{
public function __construct()
{
diff --git a/src/exceptions/unknown_chart_type.php b/src/exceptions/unknown_chart_type.php
index 3509034..df5596b 100644
--- a/src/exceptions/unknown_chart_type.php
+++ b/src/exceptions/unknown_chart_type.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphUnknownChartTypeException extends ezcBaseException
+class ezcGraphUnknownChartTypeException extends ezcGraphException
{
public function __construct( $chartType )
{
diff --git a/src/exceptions/unknown_color_definition.php b/src/exceptions/unknown_color_definition.php
index 60d8573..5dbb524 100644
--- a/src/exceptions/unknown_color_definition.php
+++ b/src/exceptions/unknown_color_definition.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphUnknownColorDefinitionException extends ezcBaseException
+class ezcGraphUnknownColorDefinitionException extends ezcGraphException
{
public function __construct( $definition )
{
diff --git a/src/exceptions/unknown_dataset_source.php b/src/exceptions/unknown_dataset_source.php
index f74c087..7641f2b 100644
--- a/src/exceptions/unknown_dataset_source.php
+++ b/src/exceptions/unknown_dataset_source.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphUnknownDatasetSourceException extends ezcBaseException
+class ezcGraphUnknownDatasetSourceException extends ezcGraphException
{
public function __construct( $source )
{
diff --git a/src/exceptions/unknown_palette.php b/src/exceptions/unknown_palette.php
index fbdfb4c..749f7ec 100644
--- a/src/exceptions/unknown_palette.php
+++ b/src/exceptions/unknown_palette.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphUnknownPaletteException extends ezcBaseException
+class ezcGraphUnknownPaletteException extends ezcGraphException
{
public function __construct( $name )
{
diff --git a/src/exceptions/unsupported_image_type.php b/src/exceptions/unsupported_image_type.php
index fb97087..e8d484a 100644
--- a/src/exceptions/unsupported_image_type.php
+++ b/src/exceptions/unsupported_image_type.php
@@ -14,7 +14,7 @@
* @package Graph
* @version //autogen//
*/
-class ezcGraphGdDriverUnsupportedImageTypeException extends ezcBaseException
+class ezcGraphGdDriverUnsupportedImageTypeException extends ezcGraphException
{
public function __construct( $type )
{
OpenPOWER on IntegriCloud