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

Error() public method

public Error ( int code, Mono.CSharp.Location loc, string error ) : void
code int
loc Mono.CSharp.Location
error string
return void
		public void Error (int code, Location loc, string error)
		{
			if (reporting_disabled > 0)
				return;

			ErrorMessage msg = new ErrorMessage (code, loc, error, extra_information);
			extra_information.Clear ();

			printer.Print (msg);
		}

Same methods

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 error ) : 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