An action to enforce a claim arising under AS 45.50.562 45.50.596 is barred unless commenced within four years after the claim accrues, except that when an action is brought by the attorney general under AS 45.50.562 45.50.596, the running of this period of limitation, with respect to every private right of action for damages that is based in whole or in part on a matter complained of in the action by the attorney general, shall be suspended during the pendency of the action brought by the attorney general. For the purpose of this section, a claim for a continuing violation is considered to accrue at any time during the period of the violation.