removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc / PHPDoc / exceptions / PhpdocError.php
diff --git a/mods/phpdoc/PHPDoc/exceptions/PhpdocError.php b/mods/phpdoc/PHPDoc/exceptions/PhpdocError.php
deleted file mode 100644 (file)
index c3cc02e..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-<?php\r
-/**\r
-* PHPDoc Error Handling class\r
-*\r
-* PHPDoc "throws" an error class derived from this class whenever\r
-* an error occurs. PHPDoc saves the error object to the public array\r
-* $this->err[] which exists in every PHPDoc class and tries to return \r
-* a useful value that indicates that something might have gone wrong.\r
-*\r
-* The class is widely equal to the PEAR error handling class PEAR_ERROR.\r
-*\r
-* @author              Ulf Wendel <ulf.wendel@phpdoc.de>\r
-* @version     $Id: PhpdocError.php,v 1.2 2000/12/03 22:37:36 uw Exp $\r
-* @package     PHPDoc\r
-*/\r
-class PhpdocError {\r
-       \r
-       /**\r
-       * Name of the error object class used to construct the error message\r
-       * @var          string  $classname\r
-       */\r
-       var $classname                                          = "PhpdocError";\r
-       \r
-       /**\r
-       * Error message prefix.\r
-       * @var          string  $error_message_prefix\r
-       */\r
-       var $error_message_prefix       = "";\r
-\r
-       /**\r
-       * Error prepend, used for HTML formatting.\r
-       * @var  string  $error_prepend\r
-       */      \r
-       var $error_prepend = "<b>";\r
-       \r
-       /**\r
-       * Error append, used for HTML formatting.\r
-       * @var  string  $error_append\r
-       */\r
-       var $error_append = "</b>";\r
-       \r
-       /**\r
-       * The error message itself.\r
-       *\r
-       *       Use getMessage() to access it.\r
-       *\r
-       * @var  string  $message\r
-       * @see  PhpdocError()\r
-       */\r
-       var $message = "";\r
-       \r
-       /**\r
-       * File where the error occured.\r
-       * @var  string  $file\r
-       * @see  PhpdocError()\r
-       */\r
-       var $file = "";\r
-       \r
-       /**\r
-       * Line number where the error occured.\r
-       * @var  integer $line\r
-       * @see  PhpdocError()\r
-       */\r
-       var $line = 0;\r
-       \r
-       /**\r
-       * Array that describes how an error gets handled. \r
-       * @var  array   $errorHandling\r
-       * @see  PhpdocError()\r
-       */\r
-       var $errorHandling = array(\r
-                                                                                                                       "print"         => false, \r
-                                                                                                                       "trigger"       => false,\r
-                                                                                                                       "die"                   => false\r
-                                                                                                               );\r
-       \r
-       /**\r
-       * Sets the error message, filename and linenumber.\r
-       *\r
-       * @param        string  Errormessage\r
-       * @param        string  Name of the file where the error occured, use __FILE__ for this\r
-       * @param        string  Linenumber where the error occured, use __LINE__ for this\r
-       */\r
-       function PhpdocError($message, $file, $line) {\r
-       \r
-               $this->message = $message;\r
-               $this->file = $file;\r
-               $this->line = $line;\r
-\r
-               if ($this->errorHandling["print"])\r
-                       $this->printMessage();\r
-               \r
-               if ($this->errorHandling["trigger"])\r
-                       trigger_error($this->getMessage(), "E_USER_NOTICE");\r
-                       \r
-               if ($this->errorHandling["die"])\r
-                       die($this->getMessage);\r
-               \r
-       } // end func PhpdocError\r
-\r
-       /**\r
-       * Returns a string with the error message.\r
-       * @access       public\r
-       */      \r
-       function getMessage() {\r
-       \r
-               return sprintf("%s%s: %s [File: %s, Line: %s]%s",\r
-                                                                               $this->error_prepend,\r
-                                                                               $this->error_message_prefix,\r
-                                                                               $this->message,\r
-                                                                               $this->file,\r
-                                                                               $this->line, \r
-                                                                               $this->error_append);\r
-                                                                               \r
-       } // end func getMessage\r
-       \r
-       /**\r
-       * Prints the error message.\r
-       * @brother      getMessage()\r
-       */\r
-       function printMessage() {\r
-               print $this->getMessage();\r
-       } // end func printMessage\r
-       \r
-} // end class PhpdocError\r
-?>
\ No newline at end of file