/// <summary> /// Initializes a new instance of the <see cref="SchemaValidationException"/> class. /// </summary> /// <param name="validationErrors">The validation errors.</param> /// <param name="message">The message.</param> public SchemaValidationException(SchemaValidationErrors validationErrors, string message) : base(message) { this.validationErrors = validationErrors; }
/// <summary> /// Initializes a new instance of the <see cref="SchemaValidationException"/> class. /// </summary> /// <param name="validationErrors">The validation errors.</param> /// <param name="message">The message.</param> /// <param name="innerException">The inner exception.</param> public SchemaValidationException(SchemaValidationErrors validationErrors, string message, Exception innerException) : base(message, innerException) { this.validationErrors = validationErrors; }
public static void AddError(SchemaValidationErrors schemaValidationErrors, SchemaTable table, SchemaColumn column, SchemaValidationErrorKind kind) { var roleType = column.RelationType == null ? null : column.RelationType.RoleType; schemaValidationErrors.AddTableError(null, null, roleType, table.ToString(), column.ToString(), kind, kind + ": " + table + "." + column); }
public static void AddError(SchemaValidationErrors schemaValidationErrors, SchemaProcedure schemaProcedure, SchemaValidationErrorKind kind, string message) { schemaValidationErrors.AddProcedureError(schemaProcedure, kind, message); }
public static void AddError(SchemaValidationErrors schemaValidationErrors, SchemaTable table, SchemaValidationErrorKind kind) { schemaValidationErrors.AddTableError(table.ObjectType, table.RelationType, null, table.ToString(), null, kind, kind + ": " + table); }