Mono.CSharp.Report.Error C# (CSharp) Method

Error() public method

public Error ( int code, string error ) : void
code int
error string
return void
		public void Error (int code, string error)
		{
			Error (code, Location.Null, error);
		}

Same methods

Report::Error ( int code, Mono.CSharp.Location loc, string error ) : void
Report::Error ( int code, Mono.CSharp.Location loc, string format, string arg ) : void
Report::Error ( int code, Mono.CSharp.Location loc, string format, string arg1, string arg2 ) : void
Report::Error ( int code, string format, string arg ) : void
Report::Error ( int code, string format, string arg1, string arg2 ) : void

Usage Example

Example #1
0
 public static void Error_InvalidConstantType(TypeSpec t, Location loc, Report Report)
 {
     if (t.IsGenericParameter) {
         Report.Error (1959, loc,
             "Type parameter `{0}' cannot be declared const", TypeManager.CSharpName (t));
     } else {
         Report.Error (283, loc,
             "The type `{0}' cannot be declared const", TypeManager.CSharpName (t));
     }
 }
All Usage Examples Of Mono.CSharp.Report::Error