Certain Judges and Magistrates not to try certain offences when committed before themselves
Except as provided in sections 344, 345, 349 and 350, no Judge of a Criminal Court (other than a Judge of a High Court) or Magistrate shall try any person for any offence referred to in section 195, when such offence is committed before himself or in contempt of his authority, or is brought under his notice as such judge or magistrate in the course of a judicial proceeding.
Imprisonment or committal of person refusing to answer or produce document
If any witness or person called to produce a document or thing before a Criminal Court refuses to answer such question as are put to him or to produce any document or thing in his possession or power which the Court requires him to produce, and does not, after a reasonable opportunity has been given to him so to do, offer any reasonable excuse for such refusal such Court may, for reasons to be recorded in writing, sentence him to simple imprisonment or by warrant under the hand of the Presiding Magistrate or Judge commit him to the custody of an officer of the Court for any term not exceeding seven days, unless in the meantime, such person consents to be examined and to answer, or to produce the document or thing and in the event of his persisting in his refusal he may be dealt with according to the provisions of section 345 of section 346.
Discharge of offender on submission of apology
When any Court has under section 345 adjudged an offender to punishment, or has under section 346 forwarded him to a Magistrate for trial, for refusing or omitting to do anything which he was lawfully required to do or for any international insult or interruption, the Court may, in its discretion, discharge the offender or remit the punishment on his submission to the order or requisition of such Court or on apology being made to its satisfaction.
When Registrar or Sub-Registrar to be deemed a Civil Court
When the State Government so directs, any Registrar or any Sub-Registrar appointed under the *** Registration Act, 1908 (16 of 1908), shall be deemed to be a civil Court within the meaning of sections 345 and 346.