The provisions of articles L. 212-1 and L. 212-2 do not apply to military personnel, to civil servants covered by titles II, III and IV of the general status of civil servants in the performance of their duties under their special status, or to teachers in public educational establishments and private educational establishments under contract with the State in the performance of their duties.