This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / gmcs / report.cs
index c7f0af7553471b56d22bdf7bdf87f5a739b5964b..c398d025051e0e41936b5bbc85f2b656e5c09971 100644 (file)
@@ -88,6 +88,22 @@ namespace Mono.CSharp {
                static string GetErrorMsg (int error_no)
                {
                        switch (error_no) {
+                               case 0122: return "'{0}' is inaccessible due to its protection level";
+                               case 0160: return "A previous catch clause already catches all exceptions of this or a super type '{0}'";
+                               case 0243: return "Conditional not valid on '{0}' because it is an override method";
+                               case 0577: return "Conditional not valid on '{0}' because it is a destructor, operator, or explicit interface implementation";
+                               case 0578: return "Conditional not valid on '{0}' because its return type is not void";
+                               case 0582: return "Conditional not valid on interface members";
+                               case 0592: return "Attribute '{0}' is not valid on this declaration type. It is valid on {1} declarations only.";
+                               case 0601: return "The DllImport attribute must be specified on a method marked `static' and `extern'";
+                               case 0610: return "Field or property cannot be of type '{0}'";
+                               case 0619: return "'{0}' is obsolete: '{1}'";
+                               case 0626: return "Method, operator, or accessor '{0}' is marked external and has no attributes on it. Consider adding a DllImport attribute to specify the external implementation";
+                               case 0629: return "Conditional member '{0}' cannot implement interface member";
+                               case 0657: return "'{0}' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are '{1}'";
+                               case 1618: return "Cannot create delegate with '{0}' because it has a Conditional attribute";
+                               case 1667: return "'{0}' is not valid on property or event accessors. It is valid on '{1}' declarations only";
+                               case 3000: return "Methods with variable arguments are not CLS-compliant";
                                case 3001: return "Argument type '{0}' is not CLS-compliant";
                                case 3002: return "Return type of '{0}' is not CLS-compliant";
                                case 3003: return "Type of '{0}' is not CLS-compliant";
@@ -108,6 +124,11 @@ namespace Mono.CSharp {
                static WarningData GetWarningMsg (int warn_no)
                {
                        switch (warn_no) {
+                               case -24: return new WarningData (1, "The Microsoft Runtime cannot set this marshal info. Please use the Mono runtime instead.");
+                               case -28: return new WarningData (1, "The Microsoft .NET Runtime 1.x does not permit setting custom attributes on the return type");
+                               case 0612: return new WarningData (1, "'{0}' is obsolete");
+                               case 0618: return new WarningData (2, "'{0}' is obsolete: '{1}'");
+                               case 0672: return new WarningData (1, "Member '{0}' overrides obsolete member. Add the Obsolete attribute to '{0}'");
                                case 3012: return new WarningData (1, "You must specify the CLSCompliant attribute on the assembly, not the module, to enable CLS compliance checking");
                                case 3019: return new WarningData (2, "CLS compliance checking will not be performed on '{0}' because it is private or internal");
                        }