zackster
09/12/2023, 8:29 AMAdam Cameron
zackster
09/12/2023, 8:37 AMEvil Ware
09/12/2023, 12:37 PMdswitzer
09/12/2023, 1:14 PM12: // create the exception
13: try {
14: throw msg;
15: }
16: catch(e) {
But it would be cool if that information was from the cause exception.
That's one that thing I've always hated about rethrowing an exception, because you loose the original in the exception message.zackster
09/12/2023, 1:23 PM<cfscript>
try {
throw "upsi dupsi!";
}
catch(e) {
try {
throw("Upseli dupseli", e);
}
catch(e) {
// i'm just catching and echo the exception because trycf would swollow most of it
echo(e);
}
}
</cfscript>zackster
09/12/2023, 1:27 PMEvil Ware
09/12/2023, 1:29 PMzackster
09/12/2023, 1:34 PMEvil Ware
09/12/2023, 1:37 PMzackster
09/12/2023, 1:44 PMAdam Cameron
<cfthrow> before.Adam Cameron
zackster
09/12/2023, 1:52 PMbdw429s
09/12/2023, 6:01 PMCaused by: lucee.runtime.exp.CustomTypeException: upsi dupsi!
at lucee.runtime.tag.Throw._doStartTag(Throw.java:212)
at lucee.runtime.tag.Throw.doStartTag(Throw.java:201)
at main1694541623313_5339a523_6780_d030_efc3_284745fd49e5_cfm7020$cf.call(/obscure_ram_path/main1694541623313-5339a523-6780-d030-efc3-284745fd49e5.cfm:28)bdw429s
09/12/2023, 6:02 PMAdam Cameron
zackster
09/13/2023, 7:44 AMAdam Cameron
cause exception here, not the unhandled one)
But like I said, when I say "not so sure", I do mean "not so sure". That's not code for "I think it shouldn't". Just offering a contrary opinion in a "12 Angry Men" sort of way, to engender thought/conversationzackster
09/13/2023, 8:14 AMzackster
09/13/2023, 8:15 AM