summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.h
diff options
context:
space:
mode:
authorPeter Cowburn <salathe@php.net>2019-09-04 21:39:02 +0100
committerPeter Cowburn <salathe@php.net>2019-09-09 21:06:00 +0100
commitbc6199757168eee4bd1d0a0d28a36c242bdcf13d (patch)
tree2d018baed796fd75c1aabdae0d866b01417f5129 /Zend/zend_exceptions.h
parent628fd6ec7170d03921b0047fd1aaaa8171ad4e8e (diff)
downloadphp-git-bc6199757168eee4bd1d0a0d28a36c242bdcf13d.tar.gz
add ValueError
ValueError is intended to be thrown when a function or method receives an argument that has the right type (incorrect type should throw a TypeError) but an inappropriate value.
Diffstat (limited to 'Zend/zend_exceptions.h')
-rw-r--r--Zend/zend_exceptions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h
index 5f31c4b25b..ec6f0a0201 100644
--- a/Zend/zend_exceptions.h
+++ b/Zend/zend_exceptions.h
@@ -32,6 +32,7 @@ extern ZEND_API zend_class_entry *zend_ce_compile_error;
extern ZEND_API zend_class_entry *zend_ce_parse_error;
extern ZEND_API zend_class_entry *zend_ce_type_error;
extern ZEND_API zend_class_entry *zend_ce_argument_count_error;
+extern ZEND_API zend_class_entry *zend_ce_value_error;
extern ZEND_API zend_class_entry *zend_ce_arithmetic_error;
extern ZEND_API zend_class_entry *zend_ce_division_by_zero_error;