Adding primitive error codes for the validator and the validator exception