Displaing of HsarwebInternalException error messages.
This commit is contained in:
parent
883f7185ea
commit
a9543dddc6
@ -87,7 +87,7 @@ public abstract class AbstractModule implements Module, Serializable {
|
||||
((InsertAble) thisModule).insertRow(map);
|
||||
componentFactory.loadData();
|
||||
} catch (HsarwebException e) {
|
||||
application.showUserException(e);
|
||||
application.showHsarWebException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -146,7 +146,7 @@ public class HomeModule extends AbstractModule implements ComponentFactory, Upda
|
||||
}
|
||||
((UpdateAble) thisModule).updateRow(map);
|
||||
} catch (HsarwebException e) {
|
||||
application.showUserException(e);
|
||||
application.showHsarWebException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -198,8 +198,16 @@ public class MainApplication extends Application implements HttpServletRequestLi
|
||||
}
|
||||
}
|
||||
|
||||
public void showHsarWebException(Exception e) {
|
||||
if (e instanceof HsarwebUserException) {
|
||||
showUserException(e);
|
||||
} else {
|
||||
showSystemException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public void showUserException(Exception e) {
|
||||
getMainWindow().showNotification("Anwendungs-Fehler", "<br/ >" + e.getMessage(), Notification.TYPE_ERROR_MESSAGE);
|
||||
getMainWindow().showNotification("Anwendungs-Fehler", "<br />" + e.getMessage(), Notification.TYPE_ERROR_MESSAGE);
|
||||
}
|
||||
|
||||
public void showSystemException(Exception e) {
|
||||
|
@ -235,7 +235,7 @@ public class TableComponentFactory implements ComponentFactory, Serializable {
|
||||
((UpdateAble) module).updateRow(map);
|
||||
loadData();
|
||||
} catch (HsarwebException e) {
|
||||
application.showUserException(e);
|
||||
application.showHsarWebException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -294,7 +294,7 @@ public class TableComponentFactory implements ComponentFactory, Serializable {
|
||||
((DeleteAble) module).deleteRow(map);
|
||||
loadData();
|
||||
} catch (HsarwebException e) {
|
||||
application.showUserException(e);
|
||||
application.showHsarWebException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user