public override void OnUserFacingException(UserFacingException e, string message) { // All UserFacingException throws will now come to here Console.WriteLine("User error: " + message); Console.ReadLine(); Environment.Exit(1); }
public override void OnUserFacingException(UserFacingException e, string message) { var color = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Red; Console.Error.WriteLine(message); Console.ForegroundColor = color; Environment.Exit(1); }
public override void OnUserFacingException(UserFacingException e, string message) { throw e; }
public override void OnUserFacingException(UserFacingException e, string message) { // Re-throw the exception, causing it to bubble up to the root command throw e; }
public override void OnUserFacingException(UserFacingException e, string message) { // your own handling of the message for the user Console.WriteLine("User error: " + message); Environment.Exit(1); }
public virtual void OnUserFacingException(UserFacingException e, string message) { UserFacingExceptionDefaults.OnUserFacingException(e, message); }
public override void OnUserFacingException(UserFacingException e, string message) { MessageBox.Show("Invalid launch option(s) specified. See --help for available options.", "Failed to launch Blish HUD", MessageBoxButtons.OK); }
public override void OnUserFacingException(UserFacingException e, string message) { throw new NotImplementedException(); }
public static void ShowErrorMessageDialogue(UserFacingException ex) { ShowErrorMessageDialogue(ex.ErrorCode, ex.Parameters); }
public override void OnUserFacingException(UserFacingException e, string message) { Error(message); }