Catching more that one exception type in a single cfcatch block?

Hi Everyone,

This is something I’ve always wondered but have not found a solid answer
for. I’ve always felt like something like this should be possible:

Do stuff!

In ACF you can’t do that but is there any Lucee-magic that would enable
something like this? I know I could just catch “any” and sort it all out
within that block but the example above just feels so clean and nice.

Thanks!

try this

Do stuff! Do something! On 12 November 2015 at 05:11, AWDSOFT <@AWDSOFT> wrote:

Hi Everyone,

This is something I’ve always wondered but have not found a solid answer
for. I’ve always felt like something like this should be possible:

Do stuff!

In ACF you can’t do that but is there any Lucee-magic that would enable
something like this? I know I could just catch “any” and sort it all out
within that block but the example above just feels so clean and nice.

Thanks!


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/c62028bf-c540-4372-baa9-76d9b7a1d203%40googlegroups.com
https://groups.google.com/d/msgid/lucee/c62028bf-c540-4372-baa9-76d9b7a1d203%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix

@AJ - That does work but it means I either have to duplicate the error
handling for each “cfcatch” block or I have to abstract it into some other
method. I’m really not a fan of duplicating the handling in each block so
that leaves abstraction. While abstraction will do the trick, I just wanted
to ask about the “awesome & clean” option first in case I missed a feature.On Wednesday, November 11, 2015 at 8:45:46 PM UTC-7, AJ Mercer wrote:

try this

Do stuff! Do something!

On 12 November 2015 at 05:11, AWDSOFT <awd...@gmail.com <javascript:>> wrote:

Hi Everyone,

This is something I’ve always wondered but have not found a solid answer
for. I’ve always felt like something like this should be possible:

Do stuff!

In ACF you can’t do that but is there any Lucee-magic that would enable
something like this? I know I could just catch “any” and sort it all out
within that block but the example above just feels so clean and nice.

Thanks!


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/c62028bf-c540-4372-baa9-76d9b7a1d203%40googlegroups.com
https://groups.google.com/d/msgid/lucee/c62028bf-c540-4372-baa9-76d9b7a1d203%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix