From d9630a595b94e54a1837bf773a3c5f7fade5d75b Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Thu, 12 Feb 2004 10:24:40 +0000 Subject: Exceptions updates: - Enforce exceptions to be derived from class Exception. This allows users to perform catch-all. It's not yet complete, so don't get comfortable with it just yet :) Updates are coming soon. - Implement zend_throw_exception() using zend_throw_exception_ex() --- Zend/zend_exceptions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Zend/zend_exceptions.h') diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h index def3440e55..68dd208f20 100644 --- a/Zend/zend_exceptions.h +++ b/Zend/zend_exceptions.h @@ -31,6 +31,7 @@ ZEND_API void zend_register_default_classes(TSRMLS_D); * 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); ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...); +ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC); /* show an exception using zend_error(E_ERROR,...) */ ZEND_API void zend_exception_error(zval *exception TSRMLS_DC); -- cgit v1.2.1