Can't use exception handling on non-exception error checking