cvs: pear /Net_GameServerQuery/GameServerQuery Error.php
| From: | Aidan Lister | Date: | Tue, 18 Jan 2005 04:41:59 +0000 |
| Subject: | cvs: pear /Net_GameServerQuery/GameServerQuery Error.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-28647@lists.php.net to get a copy of this message | ||
aidan Mon Jan 17 23:41:59 2005 EDT
Modified files:
/pear/Net_GameServerQuery/GameServerQuery Error.php
Log:
Added InvalidGame exception
http://cvs.php.net/diff.php/pear/Net_GameServerQuery/GameServerQuery/Error.php?r1=1.4&r2=1.5&ty=u
Index: pear/Net_GameServerQuery/GameServerQuery/Error.php
diff -u pear/Net_GameServerQuery/GameServerQuery/Error.php:1.4
pear/Net_GameServerQuery/GameServerQuery/Error.php:1.5
--- pear/Net_GameServerQuery/GameServerQuery/Error.php:1.4 Sat Jan 15 09:19:50 2005
+++ pear/Net_GameServerQuery/GameServerQuery/Error.php Mon Jan 17 23:41:59 2005
@@ -16,7 +16,7 @@
// | Tom Buskens <ortega@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Error.php,v 1.4 2005/01/15 14:19:50 aidan Exp $
+// $Id: Error.php,v 1.5 2005/01/18 04:41:59 aidan Exp $
/**
* ParsingException
@@ -57,4 +57,30 @@
}
+/**
+ * DriverNotFoundException
+ */
+class DriverNotFoundException extends Exception
+{
+ public function __construct()
+ {
+ parent::__construct('The driver required for this game is missing');
+ }
+
+}
+
+
+
+/**
+ * DriverNotFoundException
+ */
+class InvalidGameException extends Exception
+{
+ public function __construct()
+ {
+ parent::__construct('Invalid Game');
+ }
+
+}
+
?>
\ No newline at end of file