Chapter 4 – Grounds for exemption from liability
Section 2 – Mistake as to the unlawfulness of the act
If the perpetrator errs in regarding his or her act as lawful, he or she is exempt from criminal liability if the mistake is to be deemed manifestly excusable due to the following factors :
(1) the defective or erroneous publication of the law,
(2) the particular obtuseness of the contents of the law,
(3) erroneous advice by an authority, or
(4) another reason comparable to these.
Mistake of law - national proceedings
EDIT.