Project

Profile

Help

Support #2096

Java exceptions should trigger an php exception

Added by O'Neil Delpratt about 6 years ago.

Status:
New
Priority:
Normal
Category:
PHP API
Start date:
2014-06-30
Due date:
% Done:

0%

Estimated time:
Found in version:
0.3.1

Description

Requested by user Jeron Bobbeldijk:

User mentioned that it would be good for a Java exceptions to trigger a PHP exception.

Examples:

https://github.com/mongodb/mongo-php-driver/blob/master/exceptions/connection_exception.c

https://github.com/mongodb/mongo-php-driver/blob/master/exceptions/connection_exception.h

In the PHP extension:

zend_throw_exception(mongo_ce_ConnectionException, error_message, 71 TSRMLS_CC);

Please register to edit this issue

Also available in: Atom PDF