Added error constants for CompassError and ContactError