Code of Civil Procedure § 1994
CHAPTER 2. Means of Production
Every warrant of commitment, issued by a court or officer pursuant to this chapter, shall specify therein, particularly, the cause of the commitment, and if it be for refusing to answer a question, that question shall be stated in the warrant.