Allows exceptions to be thrown when id is not found.