An emergency restraining order is a civil order with criminal penalties. It is issued by a Massachusetts judge for up to 10 days. Emergency restraining orders are issued after a one-sided hearing (called ex-parte). An emergency restraining order can be issued by a judge over the phone. It is only valid until the court opens for normal business.