Chained Catch Statements

Alex Rønne Petersen xtzgzorex at gmail.com
Mon Jan 30 08:54:20 PST 2012


On 30-01-2012 15:37, Jared wrote:
> In Java and C++, I can do something to the effect of:
>
> try
> {
>      //Some code
> }
> catch (Exception1)
> {
> }
> catch (Exception2)
> {
> }
> //etc...
>
> However, this doesn't seem to be possible in D. What is the idiom for handling
> a case where multiple exceptions of different types may be thrown?

Huh? I do this several places in my code. Works For Me (TM).

- Alex


More information about the Digitalmars-d-learn mailing list