throw "correct" exception in getById