Error detection with a class of q-ary two-weight codes | IEEE Conference Publication | IEEE Xplore