@hrefna our brain learned:

```
try {
thing thing = new thing();
thing.DoTheThing();
};
catch (thing.CantDoTheThingException e) {
printf('can\'t do the thing. Got %s (error code %d)', e.type, e.code;
}
```