http://coldfusion.com logo
#fusion-reactor
Title
# fusion-reactor
t

Tim Badolato

09/28/2022, 3:25 PM
Thanks! Exactly what I needed
d

davidtat

09/28/2022, 3:30 PM
Great :-)
t

Tim Badolato

09/28/2022, 3:38 PM
Odd, because when I dump
getActiveMasterTransaction
I can see
setTrappedThrowable
is a method in the dump
m

mflewittintergral

09/28/2022, 3:39 PM
Copy code
void setTrappedThrowable( Throwable throwable )
does exist
setTrappedThrowable (struct) does not
it needs to be a java type of throwable
t

Tim Badolato

09/28/2022, 3:41 PM
I just have a
cfcatch
exception, do I cast it to
throwable
? How would I do that?
m

mflewittintergral

09/28/2022, 3:42 PM
exception = createObject( "java", "java.lang.Throwable" ).init( cfcatch );
stacktrace = cfcatch.stackTrace;        exception.setStackTrace(cfcatch.getStackTrace());
t

Tim Badolato

09/28/2022, 3:45 PM
Perfect, thanks! Now it's working.
When checking the
Error Details
tab, it's showing an HTML dump of the error, ie:
Copy code
<table id="-lucee-err" cellpadding="4" cellspacing="1">
    <tr>
        <td colspan="2" class="label">Lucee 5.3.8.189 Error (application)</td>
    </tr>
    
    <tr>
        <td class="label">Message</td>
        <td>WEEEEE</td>
    </tr>
.....
Is there a way to make FusionReactor render the HTML, short of writing a custom Chrome extension?
Or is there a way to log a plaintext version of the error without HTML?
6 Views