private void CheckSchemaErrors() { if (this._vex) { TrackingProfileDeserializationException exception = new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationSchemaError); if (this._vArgs != null) { foreach (ValidationEventArgs args in this._vArgs) { exception.ValidationEventArgs.Add(args); } } throw exception; } }
private void CheckSchemaErrors() { // // If the parsing hit an error->throw // Clients can check ValidationEventArgs to get // all errors & warnings that were caught. if (_vex) { TrackingProfileDeserializationException tpde = new TrackingProfileDeserializationException(ExecutionStringManager.TrackingDeserializationSchemaError); if (null != _vArgs) { foreach (ValidationEventArgs arg in _vArgs) tpde.ValidationEventArgs.Add(arg); } throw tpde; } }