Project

Profile

Help

Bug #6575

closed

Some exception message is empty in the PHP API

Added by O'Neil Delpratt about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
PHP Extension function
Start date:
2024-10-30
Due date:
% Done:

100%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Found in version:
12.5
Fixed in version:
SaxonC Languages:
PHP, Python
SaxonC Platforms:
All
SaxonC Architecture:

Description

Following the raising of the bug issue #6574 message of some exceptions are coming through as empty.

This is because the PHP code is calling the getMessageWithErrorCode() in the exception catch block. This assumes the exception is coming from the Java code under Graalvm. For exception coming directly from the C++ code the message is not captured.

Actions #1

Updated by O'Neil Delpratt about 1 month ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Applies to branch 12, trunk added

Bug fixed in the getMessageWithErrorCode() method by using the C++ message if the exception was created by the C++ code.

Please register to edit this issue

Also available in: Atom PDF