PageRenderTime 54ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/src/mpv5/ui/panels/ChangeNotApprovedException.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 26 lines | 10 code | 4 blank | 12 comment | 0 complexity | eceea2565b5e788553d5c3f5b2fb64bf MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package mpv5.ui.panels;
  6. import mpv5.db.common.DatabaseObject;
  7. import mpv5.db.objects.Item;
  8. /**
  9. *
  10. * @author anti
  11. */
  12. public class ChangeNotApprovedException extends Exception {
  13. private final DatabaseObject dataOwner;
  14. /**
  15. * This exception is thrown if the change of the given dataset is not confirmed by the user
  16. * @param dataOwner
  17. */
  18. public ChangeNotApprovedException(DatabaseObject dataOwner) {
  19. super("Change of " + dataOwner + " not approved by the user/ configuration.");
  20. this.dataOwner = dataOwner;
  21. }
  22. }