Throw exceptions instead of redirection when record not found