public static void showErrorDialog(@NotNull final Project project,final Throwable throwable){
  if (throwable != null) {
    showErrorDialog(project,throwable.getMessage());
  }
 else {
    showErrorDialog(project,TfPluginBundle.message(TfPluginBundle.KEY_MESSAGE_TEAM_SERVICES_UNEXPECTED_ERROR));
  }
}

public static void showErrorDialog ( @ NotNull final Project project , final Throwable throwable ) { if ( throwable != null ) { showErrorDialog ( project , throwable . getMessage ( ) ) ; } else { showErrorDialog ( project , TfPluginBundle . message ( TfPluginBundle . KEY_MESSAGE_TEAM_SERVICES_UNEXPECTED_ERROR ) ) ; } }
shows an error dialog
