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);
|
((InsertAble) thisModule).insertRow(map);
|
||||||
componentFactory.loadData();
|
componentFactory.loadData();
|
||||||
} catch (HsarwebException e) {
|
} 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);
|
((UpdateAble) thisModule).updateRow(map);
|
||||||
} catch (HsarwebException e) {
|
} catch (HsarwebException e) {
|
||||||
application.showUserException(e);
|
application.showHsarWebException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -198,6 +198,14 @@ 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) {
|
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);
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,7 @@ public class TableComponentFactory implements ComponentFactory, Serializable {
|
|||||||
((UpdateAble) module).updateRow(map);
|
((UpdateAble) module).updateRow(map);
|
||||||
loadData();
|
loadData();
|
||||||
} catch (HsarwebException e) {
|
} catch (HsarwebException e) {
|
||||||
application.showUserException(e);
|
application.showHsarWebException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -294,7 +294,7 @@ public class TableComponentFactory implements ComponentFactory, Serializable {
|
|||||||
((DeleteAble) module).deleteRow(map);
|
((DeleteAble) module).deleteRow(map);
|
||||||
loadData();
|
loadData();
|
||||||
} catch (HsarwebException e) {
|
} catch (HsarwebException e) {
|
||||||
application.showUserException(e);
|
application.showHsarWebException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user