According to a British law passed in 1845, attempting to commit suicide was a capital offense. Offenders could be hanged for trying.