If everyone was entitled to break any law they did not know about, society would be significantly more chaotic. Legal systems therefore use the general principle ignorantia juris neminem excusat — ignorance of the law excuses no one.
The Times