I would prefer this to be the third parameter. You throw something on a connection with a code and an exception...