Example #1
0
        private void handleError(ErrorState errorState, Exception ex = null)
        {
            ReadyState = ReadyState.ERRORED;
            ErrorState = errorState;

            var errorDescription = errorState.GetDescriptionFromEnumValue();
            var message          = ex != null ? $"{errorDescription}\n{ex.Message}" : errorDescription;

            _ = MessageBox.Show(message, "Error", MessageBoxButton.OK, MessageBoxImage.Warning);
        }