예제 #1
0
 protected void Error_NameExists(SoaObject site, NameCollisionException exception)
 {
     Error_NameExists(site.GetMetaInfo<SourceLocationInfo>(), exception);
 }
예제 #2
0
 protected void Error_NameNotFound(SoaObject site, NameNotFoundException exception)
 {
     Error_NameNotFound(site.GetMetaInfo<SourceLocationInfo>(), exception);
 }
예제 #3
0
 protected void Error_NameRedundant(SoaObject site, System.Type type, string name)
 {
     Error_NameRedundant(site.GetMetaInfo<SourceLocationInfo>(), type, name);
 }
예제 #4
0
 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);
 }
예제 #5
0
        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);
        }
예제 #6
0
 protected void Error_MultipleProtocol(SoaObject site, string protocol)
 {
     errorReporter.Error(site.GetMetaInfo<SourceLocationInfo>(), "A {0} protocol is already included.", protocol);
 }
예제 #7
0
 protected void Error_MissingProtocol(SoaObject site, string protocol)
 {
     errorReporter.Error(site.GetMetaInfo<SourceLocationInfo>(), "A {0} protocol is missing.", protocol);
 }