/// <summary> /// Sets the content error handling policy. Abort stops converson on any error, Skip omits content with errors from output, Ignore tries to process errorneous content anyway. /// </summary> /// <param name="type">content error policy</param> /// <returns>config object</returns> public ObjectConfig SetErrorHandlingType(ContentErrorHandlingType type) { switch (type) { case ContentErrorHandlingType.Abort: _loadErrorHandling = "abort"; break; case ContentErrorHandlingType.Skip: _loadErrorHandling = "skip"; break; case ContentErrorHandlingType.Ignore: _loadErrorHandling = "ignore"; break; } return(this); }
/// <summary> /// Sets the content error handling policy. Abort stops converson on any error, Skip omits content with errors from output, Ignore tries to process errorneous content anyway. /// </summary> /// <param name="type">content error policy</param> /// <returns>config object</returns> public ObjectConfig SetErrorHandlingType(ContentErrorHandlingType type) { switch (type) { case ContentErrorHandlingType.Abort: _loadErrorHandling = "abort"; break; case ContentErrorHandlingType.Skip: _loadErrorHandling = "skip"; break; case ContentErrorHandlingType.Ignore: _loadErrorHandling = "ignore"; break; } return this; }