No warrant shall issue on the charge for the arrest of a person who has given his written promise to appear in court or before a person authorized to receive a deposit of bail, unless he has violated the promise, the lawfully granted continuance of his promise, or has failed to deposit bail, to appear for arraignment, trial or judgment, or to comply with the terms and provisions of the judgment, as required by law.