backend: raise exceptions with the error message