PageRenderTime 243ms CodeModel.GetById 121ms app.highlight 2ms RepoModel.GetById 119ms 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
 1/*
 2 * To change this template, choose Tools | Templates
 3 * and open the template in the editor.
 4 */
 5package mpv5.ui.panels;
 6
 7import mpv5.db.common.DatabaseObject;
 8import mpv5.db.objects.Item;
 9
10/**
11 *
12 * @author anti
13 */
14public class ChangeNotApprovedException extends Exception {
15
16    private final DatabaseObject dataOwner;
17
18    /**
19     * This exception is thrown if the change of the given dataset is not confirmed by the user
20     * @param dataOwner
21     */
22    public ChangeNotApprovedException(DatabaseObject dataOwner) {
23        super("Change of " + dataOwner + " not approved by the user/ configuration.");
24        this.dataOwner = dataOwner;
25    }
26}