use of org.pentaho.di.core.exception.KettleAuthException in project pentaho-kettle by pentaho.
the class Spoon method onLoginError.
private void onLoginError(Throwable t) {
if (t instanceof KettleAuthException) {
ShowMessageDialog dialog = new ShowMessageDialog(loginDialog.getShell(), SWT.OK | SWT.ICON_ERROR, BaseMessages.getString(PKG, "Spoon.Dialog.LoginFailed.Title"), t.getLocalizedMessage());
dialog.open();
} else {
new ErrorDialog(loginDialog.getShell(), BaseMessages.getString(PKG, "Spoon.Dialog.LoginFailed.Title"), BaseMessages.getString(PKG, "Spoon.Dialog.LoginFailed.Message", t), t);
}
}
Aggregations