diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-08 09:49:20 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-08 09:49:20 +0000 |
commit | 36d09ff6ac63a135576509dbbc16f6f13cad25dd (patch) | |
tree | 4bd3229907cbbf4bba350e3f470d77b4c6bb1311 | |
parent | c8ce91759e37ab7afb61068862e4a057ce1aa5b8 (diff) | |
download | zetacomponents-graph-36d09ff6ac63a135576509dbbc16f6f13cad25dd.zip zetacomponents-graph-36d09ff6ac63a135576509dbbc16f6f13cad25dd.tar.gz |
- Elaborate in exceptions
-rw-r--r-- | src/exceptions/invalid_driver.php | 4 | ||||
-rw-r--r-- | src/exceptions/invalid_font.php | 4 | ||||
-rw-r--r-- | src/exceptions/invalid_image_file.php | 4 | ||||
-rw-r--r-- | src/exceptions/invalid_renderer.php | 4 | ||||
-rw-r--r-- | src/exceptions/no_such_data.php | 4 | ||||
-rw-r--r-- | src/exceptions/no_such_dataset.php | 4 | ||||
-rw-r--r-- | src/exceptions/too_many_datasets.php | 4 | ||||
-rw-r--r-- | src/exceptions/unknown_chart_type.php | 4 | ||||
-rw-r--r-- | src/exceptions/unknown_color_definition.php | 4 | ||||
-rw-r--r-- | src/exceptions/unknown_dataset_source.php | 4 | ||||
-rw-r--r-- | src/exceptions/unknown_palette.php | 4 |
11 files changed, 44 insertions, 0 deletions
diff --git a/src/exceptions/invalid_driver.php b/src/exceptions/invalid_driver.php index 25f7352..241eed7 100644 --- a/src/exceptions/invalid_driver.php +++ b/src/exceptions/invalid_driver.php @@ -16,6 +16,10 @@ */ class ezcGraphInvalidDriverException extends ezcBaseException { + public function __construct( $driver ) + { + parent::__construct( 'Unknown driver <' . $driver . '>.' ); + } } ?> diff --git a/src/exceptions/invalid_font.php b/src/exceptions/invalid_font.php index 394535c..1513ebc 100644 --- a/src/exceptions/invalid_font.php +++ b/src/exceptions/invalid_font.php @@ -16,6 +16,10 @@ */ class ezcGraphGdDriverInvalidFontException extends ezcBaseException { + public function __construct( $font ) + { + parent::__construct( 'Unknown font <' . $font . '>.' ); + } } ?> diff --git a/src/exceptions/invalid_image_file.php b/src/exceptions/invalid_image_file.php index 6a5b8ae..afc67ef 100644 --- a/src/exceptions/invalid_image_file.php +++ b/src/exceptions/invalid_image_file.php @@ -16,6 +16,10 @@ */ class ezcGraphInvalidImageFileException extends ezcBaseException { + public function __construct( $image ) + { + parent::__construct( 'File <' . $image . '> is not a valid image.' ); + } } ?> diff --git a/src/exceptions/invalid_renderer.php b/src/exceptions/invalid_renderer.php index 2a800af..c693e15 100644 --- a/src/exceptions/invalid_renderer.php +++ b/src/exceptions/invalid_renderer.php @@ -16,6 +16,10 @@ */ class ezcGraphInvalidRendererException extends ezcBaseException { + public function __construct( $renderer ) + { + parent::__construct( 'Unknown renderer <' . $renderer . '>.' ); + } } ?> diff --git a/src/exceptions/no_such_data.php b/src/exceptions/no_such_data.php index dd73c0f..1ea4fd5 100644 --- a/src/exceptions/no_such_data.php +++ b/src/exceptions/no_such_data.php @@ -16,6 +16,10 @@ */ class ezcGraphNoSuchDataException extends ezcBaseException { + public function __construct( $name ) + { + parent::__construct( 'No data with name <' . $name . '> found.' ); + } } ?> diff --git a/src/exceptions/no_such_dataset.php b/src/exceptions/no_such_dataset.php index f417445..3355020 100644 --- a/src/exceptions/no_such_dataset.php +++ b/src/exceptions/no_such_dataset.php @@ -16,6 +16,10 @@ */ class ezcGraphNoSuchDatasetException extends ezcBaseException { + public function __construct( $name ) + { + parent::__construct( 'No dataset with identifier <' . $name . '> could be found.' ); + } } ?> diff --git a/src/exceptions/too_many_datasets.php b/src/exceptions/too_many_datasets.php index 65cbd0d..2ee2d32 100644 --- a/src/exceptions/too_many_datasets.php +++ b/src/exceptions/too_many_datasets.php @@ -16,6 +16,10 @@ */ class ezcGraphTooManyDatasetsExceptions extends ezcBaseException { + public function __construct() + { + parent::__construct( 'You tried to insert to many datasets.' ); + } } ?> diff --git a/src/exceptions/unknown_chart_type.php b/src/exceptions/unknown_chart_type.php index e811a82..959cffc 100644 --- a/src/exceptions/unknown_chart_type.php +++ b/src/exceptions/unknown_chart_type.php @@ -16,6 +16,10 @@ */ class ezcGraphUnknownChartTypeException extends ezcBaseException { + public function __construct( $chartType ) + { + parent::__construct( 'Unknown chart type <' . $chartType . '>.' ); + } } ?> diff --git a/src/exceptions/unknown_color_definition.php b/src/exceptions/unknown_color_definition.php index 02001fa..8cecc62 100644 --- a/src/exceptions/unknown_color_definition.php +++ b/src/exceptions/unknown_color_definition.php @@ -16,6 +16,10 @@ */ class ezcGraphUnknownColorDefinitionException extends ezcBaseException { + public function __construct( $defintion ) + { + parent::__construct( 'Unknown color definition <' . $defintion . '>.' ); + } } ?> diff --git a/src/exceptions/unknown_dataset_source.php b/src/exceptions/unknown_dataset_source.php index e3d359e..f74c087 100644 --- a/src/exceptions/unknown_dataset_source.php +++ b/src/exceptions/unknown_dataset_source.php @@ -16,6 +16,10 @@ */ class ezcGraphUnknownDatasetSourceException extends ezcBaseException { + public function __construct( $source ) + { + parent::__construct( 'You provided data which could not be handled as a dataset, yet.' ); + } } ?> diff --git a/src/exceptions/unknown_palette.php b/src/exceptions/unknown_palette.php index 970c45b..d4301c6 100644 --- a/src/exceptions/unknown_palette.php +++ b/src/exceptions/unknown_palette.php @@ -16,6 +16,10 @@ */ class ezcGraphUnknownPaletteException extends ezcBaseException { + public function __construct( $name ) + { + parent::__construct( 'No palette with name <' . $name . '> could be found.' ); + } } ?> |