From the MSDN forums:
you can prevent all error messages from appearing by overwrite the VEMap.ShowMessage(msg) function.
var errorMessage = null;
VEMap.ShowMessage = function(msg)
{
//Using the ShowMessage to trap errors and do not show the error message
errorMessage = msg;
}