diff common-functions.inc @ 94:2370f4450983

Document functions and move a few functions to more appropriate places.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 18 Oct 2012 17:33:34 +0200
parents 8aadd7a23b68
children 6b882fb6ea46
line wrap: on
line diff
--- a/common-functions.inc	Thu Oct 18 16:44:48 2012 +0200
+++ b/common-functions.inc	Thu Oct 18 17:33:34 2012 +0200
@@ -12,24 +12,6 @@
 $cache->includeOnce('StatusCodes.inc', $baseDir);
 /// @endcond
 
-class RequestException extends RuntimeException
-{
-  private $_info;
-
-  function __construct($info)
-  {
-    $this->_info = $info;
-    if (array_key_exists('error', $info)) {
-      parent::__construct($info['error']);
-    }
-  }
-
-  function info()
-  {
-    return $this->_info;
-  }
-}
-
 /**
  * Generates a representation for an array of key => value pairs
  *