Your analogy about the police officer writing out a ticket is quite accurate, as the courts regularly dismiss these on the basis of incompetence.