From 50c5c6f61859cb52fd731636f49f7c1ec52754f1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 20 May 2006 22:04:19 +0000 Subject: [PATCH] r837: Adding API error handling class --- includes/class_api_error.php | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 includes/class_api_error.php diff --git a/includes/class_api_error.php b/includes/class_api_error.php new file mode 100644 index 0000000..007622a --- /dev/null +++ b/includes/class_api_error.php @@ -0,0 +1,82 @@ +message =& $mobj; + } + + // ################################################################### + /** + * The user-end cumulative reporter requires that the class be + * instantiated. This collects messages in the set message reporting + * object, but never throws the error. It is the caller's responsibility + * to check for the presence of errors and to throw the front-end + * warning using the message object. + * + * @access public + * + * @param string Error message + */ + function user_cumulative($error) + { + $this->message->add_error($error); + } +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file -- 2.22.5