public void setNextException (SQLException ex)

Adds an SQLException object to the end of the chain.

Parameters:
ex    the new exception that will be added to the end of the SQLException chain

See also:
getNextException