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);
        }
Beispiel #2
0
 protected void Error_NameNotFound(SoaObject site, NameNotFoundException exception)
 {
     Error_NameNotFound(site.GetMetaInfo<SourceLocationInfo>(), exception);
 }