public SQLException getNextException ()

Retrieves the exception chained to this SQLException object by setNextException(SQLException ex).

Returns:  the next SQLException object in the chain; null if there are none

See also:
setNextException