public XmlValidationError(ErrorLevel errorLevel, XmlErrorType errorType, string message, int? lineNumber = null)
 {
     ErrorLevel = errorLevel;
     ErrorType = errorType;
     Message = message;
     LineNumber = lineNumber;
 }
示例#2
0
 public XmlValidationError(ErrorLevel errorLevel, XmlErrorType errorType, string message, int?lineNumber = null)
 {
     ErrorLevel = errorLevel;
     ErrorType  = errorType;
     Message    = message;
     LineNumber = lineNumber;
 }
示例#3
0
        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));
            }
        }