summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-08-24 15:07:00 +0000
committerMarcus Boerger <helly@php.net>2003-08-24 15:07:00 +0000
commit4e5e7502b8801f889962c514803071d71362a092 (patch)
tree1eaa13870053d861575e3eb604eb7733a99de611 /Zend/zend_exceptions.h
parentaa632187cd869dad09369f0b3200a1b75c8fe26e (diff)
downloadphp-git-4e5e7502b8801f889962c514803071d71362a092.tar.gz
Allow to throw instances of classes derived from exception
Diffstat (limited to 'Zend/zend_exceptions.h')
-rw-r--r--Zend/zend_exceptions.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h
index 31b1b4365c..0e1d70f26a 100644
--- a/Zend/zend_exceptions.h
+++ b/Zend/zend_exceptions.h
@@ -13,6 +13,7 @@
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Sterling Hughes <sterling@php.net> |
+ | Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
@@ -24,10 +25,15 @@
BEGIN_EXTERN_C()
ZEND_API zend_class_entry *zend_exception_get_default(void);
-ZEND_API void zend_throw_exception(char *message, long code TSRMLS_DC);
ZEND_API void zend_register_default_classes(TSRMLS_D);
+
+/* exception_ce NULL or zend_exception_get_default() or a derived class
+ * message NULL or the message of the exception */
+ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC);
+
+/* show an exception using zend_error(E_ERROR,...) */
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC);
-
+
END_EXTERN_C()
#endif