Throw our own exception when an identifier is duplicate.