r3697 index.php: get rid of RuntimeException
authorDenis Ovsienko <infrastation@yandex.ru>
Sun, 30 May 2010 15:16:21 +0000 (15:16 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sun, 30 May 2010 15:16:21 +0000 (15:16 +0000)
index.php

index 295d8f7..447179f 100644 (file)
--- a/index.php
+++ b/index.php
@@ -70,7 +70,7 @@ if (isset ($tabhandler[$pageno][$tabno]))
                                assertStringArg ($page[$pageno]['bypass']);
                                break;
                        default:
-                               throw new RuntimeException ('Dispatching error for bypass parameter');
+                               throw new Exception ('Dispatching error for bypass parameter', E_INTERNAL);
                }
                showMessageOrError();
                call_user_func ($tabhandler[$pageno][$tabno], $_REQUEST[$page[$pageno]['bypass']]);
@@ -87,7 +87,7 @@ elseif (isset ($page[$pageno]['handler']))
        $page[$pageno]['handler'] ($tabno);
 }
 else
-       throw new RuntimeException ("Failed to find handler for page '${pageno}', tab '${tabno}'");
+       throw new Exception ("Failed to find handler for page '${pageno}', tab '${tabno}'", E_INTERNAL);
 ?>
        </td>
        </tr>