22. Nothing is an offence which is done by a person who, at the time of doing it, by reason of unsoundness of mind, is incapable of knowing the nature of the act, or that he is doing what is either wrong or contrary to law.
Section 21 Act of a child above seven and under twelve years of age of immature understanding
Section 22 Act of a person of unsound mind
Section 23 Act of a person incapable of judgment by reason of intoxication caused against his will
Section 24 Offence requiring a particular intent or knowledge committed by one who is intoxicated
Section 26 Act not intended to cause death, done by consent in good faith for person's benefit
Section 28 Consent known to be given under fear or misconception
Section 29 Exclusion of acts which are offences independently of harm caused
Section 30 Act done in good faith for benefit of a person without consent