Chapter 4 – Grounds for exemption from liability
Section 1 – Mistake as to the definitional elements of an offence
If at the time of the act that perpetrator was not aware of the existence of all those factors required for the completion of the statutory definition of the offence, or if he or she errs regarding such a factor, the act is not intentional. Nonetheless, liability for a negligent offence may enter the question pursuant to the provisions on criminal liability for negligence.
Mistake of fact - national proceedings
EDIT.