/// <summary> /// Shows an exception. /// </summary> /// <param name="message">Exception message.</param> public void ShowException(string message) { VbaException e = new VbaException(message); Logger.Warn("VBA code called the XLToolbox.Vba.Api.Throw method", e); VbaExceptionViewModel vm = new VbaExceptionViewModel(e); vm.InjectInto <VbaExceptionView>().ShowDialogInForm(); }
public VbaExceptionViewModel(VbaException exception) : this() { VbaException = exception; }