diff options
author | Marcus Boerger <helly@php.net> | 2004-07-15 22:21:36 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-07-15 22:21:36 +0000 |
commit | 1cdf7e66f45fc62ed962d5bdee240c64598a7562 (patch) | |
tree | 1bc06a4bcfde894e04fd8e118714eefd976d99e9 /Zend/zend_exceptions.h | |
parent | 32bdaae133b6f007d60123b3ca1d1b69ecc78c10 (diff) | |
download | php-git-1cdf7e66f45fc62ed962d5bdee240c64598a7562.tar.gz |
- Add new class ErrorException to encapsulate errors in exceptions
Diffstat (limited to 'Zend/zend_exceptions.h')
-rw-r--r-- | Zend/zend_exceptions.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h index e704d61e5e..4589dba610 100644 --- a/Zend/zend_exceptions.h +++ b/Zend/zend_exceptions.h @@ -31,15 +31,18 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC); void zend_register_default_exception(TSRMLS_D); ZEND_API zend_class_entry *zend_exception_get_default(void); +ZEND_API zend_class_entry *zend_get_error_exception(void); 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); -ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...); +ZEND_API zval * zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC); +ZEND_API zval * 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); ZEND_API void zend_clear_exception(TSRMLS_D); +ZEND_API zval * zend_throw_error_exception(zend_class_entry *exception_ce, char *message, long code, int severity TSRMLS_DC); + extern ZEND_API void (*zend_throw_exception_hook)(zval *ex TSRMLS_DC); /* show an exception using zend_error(E_ERROR,...) */ |