Levying War against her, or adhering to her Enemies, giving them Aid and Comfort.
So yes, General Thomas and General Lee's nephew would appear to have been guilty of treason. General Lee, on the other hand, properly recognized that his first duty of citizenship was to his home state.