summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.h
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-05-16 15:30:59 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-05-16 15:30:59 -0500
commitd042d0880796cfe99262bb6fa44225e984c63ace (patch)
treeeb428c9c3d43c4ab9c230b86eeaceccd01e42120 /Zend/zend_exceptions.h
parentc9f27ee4227268bc74fc54e0e06102317e614804 (diff)
downloadphp-git-d042d0880796cfe99262bb6fa44225e984c63ace.tar.gz
Remodel exceptions based on Throwable interface
Added Throwable interface that exceptions must implement in order to be thrown. BaseException was removed, EngineException renamed to Error, and TypeException and ParseException renamed to TypeError and ParseError. Exception and Error no longer extend a common base class, rather they both implement the Throwable interface.
Diffstat (limited to 'Zend/zend_exceptions.h')
-rw-r--r--Zend/zend_exceptions.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h
index e2c1f1fac7..bae4c35a78 100644
--- a/Zend/zend_exceptions.h
+++ b/Zend/zend_exceptions.h
@@ -34,12 +34,13 @@ ZEND_API void zend_throw_exception_internal(zval *exception);
void zend_register_default_exception(void);
-ZEND_API zend_class_entry *zend_exception_get_base(void);
+ZEND_API zend_class_entry *zend_get_exception_base(zval *object);
+
ZEND_API zend_class_entry *zend_exception_get_default(void);
ZEND_API zend_class_entry *zend_get_error_exception(void);
-ZEND_API zend_class_entry *zend_get_engine_exception(void);
-ZEND_API zend_class_entry *zend_get_parse_exception(void);
-ZEND_API zend_class_entry *zend_get_type_exception(void);
+ZEND_API zend_class_entry *zend_get_error(void);
+ZEND_API zend_class_entry *zend_get_parse_error(void);
+ZEND_API zend_class_entry *zend_get_type_error(void);
ZEND_API void zend_register_default_classes(void);
/* exception_ce NULL or zend_exception_get_default() or a derived class