foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Marcus Boerger
1cdf7e66f4
- Add new class ErrorException to encapsulate errors in exceptions
2004-07-15 22:21:36 +00:00
Wez Furlong
3ec72d3ed9
Revert; obviously I missed the function at the bottom of the file...
2004-05-20 17:59:27 +00:00
Wez Furlong
892ec5f535
Export this, so extensions may throw their own exception objects that
...
they have already instantiated.
2004-05-20 17:41:09 +00:00
Marcus Boerger
63a490cd90
Fix c++ builds
2004-04-28 19:20:28 +00:00
Andi Gutmans
979da66118
- Add hook for exception handler (Derick)
2004-04-13 15:19:21 +00:00
Zeev Suraski
00ed3bad29
Centralize exceptions code in zend_exceptions.[ch].
...
Remove zend_default_classes.h (use zend_exceptions.h instead)
NOTE: This currently breaks the build, fixes to php-src and pecl coming
soon
2004-02-12 10:38:14 +00:00
Zeev Suraski
d9630a595b
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()
2004-02-12 10:24:40 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Marcus Boerger
f1c92fa4c5
- Calling abstract methods should be a error for consistency reason.
...
- So in reflection_api we use the reflection_exception again.
2003-08-30 23:51:42 +00:00
Marcus Boerger
f7f49e4584
- The compiler can't detect all abstract function calls so we need to check.
...
# In this case throwing a dedicated exception is better than the error we
# show when the compiler can detect the abstract call because its run-time.
2003-08-30 11:40:37 +00:00
Marcus Boerger
fa70708d15
Add zend_throw_exception_ex() which allows to format exception messages.
...
#
# Since we don't have any portable way of printing into a dynamic buffer i
# used a stack buffer of 1K (just like the error printing) and used a dynamic
# buffer in case the necessary function is available.
#
2003-08-28 22:56:41 +00:00
Marcus Boerger
4e5e7502b8
Allow to throw instances of classes derived from exception
2003-08-24 15:07:00 +00:00
Marcus Boerger
d3473d1f58
- Provide a unified way to display uncaught exceptions, which shows
...
file/line/message info if possible.
- Add zend_eval_string_ex() to be able to handle exceptions in eval'd code.
- Use above function to fix memleaks in CLI.
2003-08-24 13:10:03 +00:00
Marcus Boerger
c3d60fd7ff
Allow zend_throw_exception() to also set the exception code
2003-08-23 19:48:52 +00:00
Marcus Boerger
0e32aaa8c6
Add function 'zend_throw_exception(char *message, int duplicate TSRMLS_DC);'
...
to provide an easy way to throw exceptions for extension developers.
2003-08-21 23:32:13 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Sterling Hughes
797dba03b8
semicolon
2003-05-04 00:01:44 +00:00
Sterling Hughes
c8e36ca66f
proto
2003-05-03 23:55:39 +00:00
Sterling Hughes
91a2475485
DEFAULT_CLASSES_H not DEFAULT_INTERFACES_H
2003-03-23 04:34:00 +00:00
Sterling Hughes
e6dfbc9565
add a standard Exception class.
2003-03-23 04:32:24 +00:00