Rename exeption to a generic name so that it can be used across buildtypes