Mantis - Quercus
Viewing Issue Advanced Details
1455 major always 11-13-06 05:45 06-05-07 10:05
dberry  
nam  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.2  
0001455: Need a way to catch Java Exceptions in PHP
The zend methods java_last_exception_get() and java_last_exception_clear() are not implemented and the error_reporting() method also seems to have no affect on java exceptions.

Resin returns a Servlet exception error in the http response. There are many non-fatal exceptions that get thrown from Java which are causing a fatal result in PHP


Notes
(0001896)
nam   
05-03-07 14:11   
since 3.1.1

We've added the capability to catch Java Exception by using a PHP try-catch block. The catch block must catch an 'Exception' type. Java Throwables will not be caught.

i.e:

<?php
try {

}
catch (Exception e) {
}

?>

(0002006)
nam   
06-05-07 10:05   
php/0g10