A. Except as provided in subsection B, any person lawfully confined in jail or lawfully in the custody of any court, officer of the court, or of any law-enforcement officer for violation of his probation or parole or on a charge or conviction of a misdemeanor, who escapes, other than by force or violence or by setting fire to the jail, is guilty of a Class 1 misdemeanor. 18.2-478 stipulates the pr