summaryrefslogtreecommitdiffstats
path: root/src/exceptions
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-05-24 12:29:24 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-05-24 12:29:24 +0000
commitaa49d9ec7aaa79cc42043224386ffc30bf7c7b0f (patch)
treefd09d73e08ca90ee14e46a76a78095cffeaa0e19 /src/exceptions
parent4029d5db40e0cc0c59647d1be98ead6602800d9a (diff)
downloadzetacomponents-graph-aa49d9ec7aaa79cc42043224386ffc30bf7c7b0f.zip
zetacomponents-graph-aa49d9ec7aaa79cc42043224386ffc30bf7c7b0f.tar.gz
- Fixed issue #10842: Pie charts fatal error with datasets with value sum <= 0
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/invalid_data.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/exceptions/invalid_data.php b/src/exceptions/invalid_data.php
new file mode 100644
index 0000000..4c8f3f2
--- /dev/null
+++ b/src/exceptions/invalid_data.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * File containing the ezcGraphInvalidDataException class
+ *
+ * @package Graph
+ * @version //autogen//
+ * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Exception thrown when invalid data is provided, which cannot be rendered
+ * for some reason.
+ *
+ * @package Graph
+ * @version //autogen//
+ */
+class ezcGraphInvalidDataException extends ezcGraphException
+{
+ public function __construct( $message )
+ {
+ parent::__construct( "You provided unusable data: '$message'." );
+ }
+}
+
+?>
OpenPOWER on IntegriCloud