Any person who is convicted of a violation of any of the provisions of this subtitle is subject to a fine of not more than $1,000 or imprisonment for not more than 2 years or both.