summaryrefslogtreecommitdiffstats
path: root/src/exceptions
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-03 10:24:05 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-03 10:24:05 +0000
commit14aef064149236b6190859b165bb431a4a4802b4 (patch)
tree8c122ddc14967c76a5e8fcca8abc355dd2e53170 /src/exceptions
parent3d159bca6c8d9f22203edabd416d30004dca02c5 (diff)
downloadzetacomponents-graph-14aef064149236b6190859b165bb431a4a4802b4.zip
zetacomponents-graph-14aef064149236b6190859b165bb431a4a4802b4.tar.gz
- Fixed: Bug #9926 (Float values with date axis result in date parsing
exception)
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/date_parsing.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/exceptions/date_parsing.php b/src/exceptions/date_parsing.php
new file mode 100644
index 0000000..34c4b5a
--- /dev/null
+++ b/src/exceptions/date_parsing.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * File containing the ezcGraphErrorParsingDateException class
+ *
+ * @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
+ */
+/**
+ * Exception thrown when a date assigned to the ezcGraphChartElementDateAxis
+ * could not be parsed.
+ *
+ * @package Graph
+ * @version //autogen//
+ */
+class ezcGraphErrorParsingDateException extends ezcGraphException
+{
+ public function __construct( $value )
+ {
+ $type = gettype( $value );
+ parent::__construct( "Could not parse date '{$value}' of type '{$type}'." );
+ }
+}
+
+?>
+
OpenPOWER on IntegriCloud