The law provided for certain persons to be exceptions to the liabilities imposed by Criminal law. The law assumes persons such as children below the age of 7 and insane persons to be incapable of understanding the consequences of their act and therefore does not hold them accountable for any of the offences. The rule further extends to death penalty as well, i.e. persons who are insane and declared so by a competent court, cannot be given death penalty. The legality of the death sentence and its relation with the mental illness of the accused was discussed in various cases by the Indian Judiciary.