added an error code exception