summaryrefslogtreecommitdiffstats
path: root/src/exceptions/invalid_data.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions/invalid_data.php')
-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