bdw429s
07/07/2023, 8:03 PMtry {
data = {'foo':'bar'};
data.each( ()=>throw( message='boom', detail='my detail', type='brad' ) )
} catch( any e ) {
// Should be "boom", but instead is "An exception occurred while calling the function each"
writeDump( e.message )
// Shoiuld be "my detail", but instead is "boom"
writeDump( e.detail )
// Should be "brad", but instead is "application"
writeDump( e.type )
}
This also means that
} catch( 'brad' e ) {
would not catch the exception at all!bdw429s
07/07/2023, 8:06 PMbdw429s
07/07/2023, 8:07 PMbdw429s
07/07/2023, 8:10 PMbdw429s
07/07/2023, 8:23 PMbdw429s
07/07/2023, 8:32 PM