gavinbaumanis
09/06/2022, 5:18 AMif( myVar = 2) {
throw("myVar = 2. It should never be 2");
}
But it fails - because it isn't in a try/catch.
Only - I don't want to catch it.
I want it to blow up the request.bdw429s
09/06/2022, 5:26 AMif( myVar = 2)
should be
if( myVar == 2)
gavinbaumanis
09/06/2022, 6:16 AMbdw429s
09/06/2022, 7:35 AMbdw429s
09/06/2022, 7:35 AMgavinbaumanis
09/06/2022, 9:21 AMThrows a developer-specified exception, which can be caught with a <cfcatch> tag
And because I was trying to use throw without the try/catch - I "assumed" - that was my issue.
Especially since all the examples include a try/catch, too.
It never occurred to me that I wasn't using the correct argument.
Anyway - thanks again!