Allow exceptions to be created with integer type codes