Unfortunately, we can't use the multicatch syntax (Java 6 is our min supported).