HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha
2013-03-07 a9543dddc6c39c6e004eaaf7398c1a45fe42f688
Displaing of HsarwebInternalException error messages.
4 files modified
16 ■■■■ changed files
hsarweb/src/de/hsadmin/web/AbstractModule.java 2 ●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/HomeModule.java 2 ●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/MainApplication.java 8 ●●●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java 4 ●●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/AbstractModule.java
@@ -87,7 +87,7 @@
                                    ((InsertAble) thisModule).insertRow(map);
                                    componentFactory.loadData();
                                } catch (HsarwebException e) {
                                    application.showUserException(e);
                                    application.showHsarWebException(e);
                                }
                            }
                        });
hsarweb/src/de/hsadmin/web/HomeModule.java
@@ -146,7 +146,7 @@
                            }
                            ((UpdateAble) thisModule).updateRow(map);
                        } catch (HsarwebException e) {
                            application.showUserException(e);
                            application.showHsarWebException(e);
                        }
                    }
                });
hsarweb/src/de/hsadmin/web/MainApplication.java
@@ -198,6 +198,14 @@
        }
    }
    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);            
    }
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java
@@ -235,7 +235,7 @@
                            ((UpdateAble) module).updateRow(map);
                            loadData();
                        } catch (HsarwebException e) {
                            application.showUserException(e);
                            application.showHsarWebException(e);
                        }
                    }
                });
@@ -294,7 +294,7 @@
                            ((DeleteAble) module).deleteRow(map);
                            loadData();
                        } catch (HsarwebException e) {
                            application.showUserException(e);
                            application.showHsarWebException(e);
                        }
                    }
                });