(1) This division applies to the following contempts—(a) contempt constituted by failure to comply with an order of the court or an undertaking given to the court;(b) contempt committed in the face of the court;(c) any other contempt of the court;(d) contempt of another court.
(2) For a contempt committed in the face of the court, the procedure under this division is an alternative to the procedure under division 2 .