Unresolved
Details
Details
Assignee
Unassigned
UnassignedReporter
Igal Sapir
Igal SapirNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Priority
Created 30 May 2017 at 20:10
Updated 12 April 2025 at 08:39
Exceptions in Lucee have a key named `additional`, which I'm guessing stands for `additionalInfo` (perhaps we should "improve" the name).
The value of that key is an empty ordered struct when using cfthrow, but it can be much more useful if we can set it to provide additional info, e.g.
throw(type: "Test", message: "Testing", additional: { a:1, b:2 });
A simple test case can then be:
try { throw(type: "Test", message: "Testing", additional: { a:1, b:2 }); } catch (ex){ assertFalse( isNull(ex.additional.a) ); // ensure not-null }
See also https://luceeserver.atlassian.net/browse/LDEV-1075#icft=LDEV-1075