changed the error code for 2 exceptions so they're different