Changed exception codes from string to int