protected void Error_NameExists(SoaObject site, NameCollisionException exception) { Error_NameExists(site.GetMetaInfo<SourceLocationInfo>(), exception); }
protected void Error_NameNotFound(SoaObject site, NameNotFoundException exception) { Error_NameNotFound(site.GetMetaInfo<SourceLocationInfo>(), exception); }
protected void Error_NameRedundant(SoaObject site, System.Type type, string name) { Error_NameRedundant(site.GetMetaInfo<SourceLocationInfo>(), type, name); }
protected void Warning_NameLowerCase(SoaObject site, string name) { errorReporter.Warning(site.GetMetaInfo<SourceLocationInfo>(), "Name of {0} \"{1}\" starts with a lowercase letter.", AttributeHelpers.GetTypeName(site.GetType()).ToLower(), name); }
protected void Error_NameNotFound(SoaObject site, NameNotFoundException exception) { // Build type string StringBuilder sb = new StringBuilder(); sb.Append(AttributeHelpers.GetTypeName(exception.Types[0])); for (int i = 1; i < exception.Types.Length - 1; i++) sb.Append(", " + AttributeHelpers.GetTypeName(exception.Types[i]).ToLower()); if (exception.Types.Length > 1) sb.Append(" or " + AttributeHelpers.GetTypeName(exception.Types[exception.Types.Length - 1]).ToLower()); errorReporter.Error(site.GetMetaInfo<SourceLocationInfo>(), "{0} \"{1}\" is not declared.", sb.ToString(), exception.Name); }
protected void Error_MultipleProtocol(SoaObject site, string protocol) { errorReporter.Error(site.GetMetaInfo<SourceLocationInfo>(), "A {0} protocol is already included.", protocol); }
protected void Error_MissingProtocol(SoaObject site, string protocol) { errorReporter.Error(site.GetMetaInfo<SourceLocationInfo>(), "A {0} protocol is missing.", protocol); }