by fail do you mean raise an exception? If so, which exception?