An action may be maintained by or against any public officer in this state in an official character, when, as to such cause of action, the officer does not represent any of the public corporations mentioned in ORS 30.310, for any of the causes specified in such section and ORS 30.320. If judgment is given against the officer in such action, it may be enforced against the officer personally, and the amount thereof shall be allowed to the officer in the official accounts of the officer.
ORS 30.400