Revision: 53
Author: shazan
Date: 2006-08-28 03:02:53 -0700 (Mon, 28 Aug 2006)
ViewCVS: http://svn.sourceforge.net/hw4mdl/?rev=53&view=rev
Log Message:
-----------
Modified Paths:
--------------
trunk/moodle/mod/liveclassroom/DbException.php
Modified: trunk/moodle/mod/liveclassroom/DbException.php
===================================================================
--- trunk/moodle/mod/liveclassroom/DbException.php 2006-08-28 10:02:35 UTC (rev 52)
+++ trunk/moodle/mod/liveclassroom/DbException.php 2006-08-28 10:02:53 UTC (rev 53)
@@ -1,6 +1,30 @@
<?PHP
+/******************************************************************************
+ * *
+ * Copyright (c) 2004-2005 Horizon Wimba Inc., All Rights Reserved. *
+ * *
+ * COPYRIGHT: *
+ * This software is the property of Horizon Wimba Inc. *
+ * It cannot be copied, used, or modified without obtaining an *
+ * authorization from the authors or a mandated member of *
+ * Horizon Wimba Inc. *
+ * If such an authorization is provided, any modified version *
+ * or copy of the software has to contain this header. *
+ * *
+ * WARRANTIES: *
+ * This software is made available by the authors in the hope *
+ * that it will be useful, but without any warranty. *
+ * Horizon Wimba Inc. is not liable for any consequence related *
+ * to the use of the provided software. *
+ * *
+ * Class: DbException.php *
+ * *
+ * Author: *
+ * *
+ * Date: 2006 *
+ * *
+ ******************************************************************************/
-
class DbException extends Exception {
public function __construct($message) {
@@ -20,21 +44,20 @@
}
- // cha\xEEne personnalis\xE9 repr\xE9sentant l'objet
+
public function __toString() {
return __CLASS__ . ": {$this->message}\n";
}
-
- public function getError() {
+ /**
+ * return the error message
+ */
+ public function getError() {
- // On retourne un message d'erreur complet pour nos besoins.
- // avec le numero de ligne
- // $return = 'Une exception a \xE9t\xE9 g\xE9r\xE9e :<br/>';
- $return .= '<strong>Message : ' . $this->getMessage() . '</strong><br/>';
+ $return .= '<strong>Message : ' . $this->getMessage() . '</strong><br/>';
- return $return;
- }
+ return $return;
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|