How do you throw more than one exception at once from one method? Example:

```
public void doA() throws Exception1, Exception2{
    throw new Exception1("test1");
    throw new Exception2("test2");
}

```

How to make something like this work?

Edit : one condition throws both Exception1 and Exception2. Possible?
This is just a demo file to test throwing exceptions.