Updated exception codes and messages.