In that case I'd expect add() to return a boolean and the caller reacts or not as is appropriate.