Elucidation of the photodegradation mechanism of CCl3C(O)NH2, CClF2C(O)NH2 and CF3C(O)NH2 in solid state (266 nm) and solution (254 nm). Experimental and theoretical studies