Is there any way I can have one handler for multiple exceptions?

bearophile bearophileHUGS at lycos.com
Mon Jul 11 16:13:35 PDT 2011


Jonathan M Davis:

> No. You can only catch one exception type with a particular catch statement.

I think someone has suggested an enhancement request to allow catching of a sequence of some Exceptions. In Python you are allowed to use a tuple of exceptions for this.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list