Raise specific exception when bug id is invalid.