Neither are poisonous. More than likely what happened is that you ran them over in the yard and they crawled to a spot where they can sun. Alot of snakes when they feel threatened try and find a warm place to "collect" there thoughts.. haha