I suppose that the execute method has a parameter so as to raise an error when it fails, i think that this parameter has a default so as not to raise errors.

You can try it by passing to the execute method an incorrect sql string or an incorrect data in your INSERT string so as to test if it is raising errors.

Hope it helps