trySetException