added getErrorName method for other modules to use to get the correct error name