public XmlValidationError(ErrorLevel errorLevel, XmlErrorType errorType, string message, int? lineNumber = null) { ErrorLevel = errorLevel; ErrorType = errorType; Message = message; LineNumber = lineNumber; }
public XmlValidationError(ErrorLevel errorLevel, XmlErrorType errorType, string message, int?lineNumber = null) { ErrorLevel = errorLevel; ErrorType = errorType; Message = message; LineNumber = lineNumber; }
public static UploadErrorType ToUploadErrorType(this XmlErrorType errorType) { switch (errorType) { case XmlErrorType.Business: return(UploadErrorType.Business); case XmlErrorType.Schema: return(UploadErrorType.Schema); default: throw new NotImplementedException(string.Format("Unknown error type '{0}'", errorType)); } }