PageRenderTime 101ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 33ms app.codeStats 5ms

/src/mpv5/db/common/UnableToLockException.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 36 lines | 8 code | 3 blank | 25 comment | 0 complexity | b73fe573ed54d81c4d775954811bef91 MD5 | raw file
 1/*
 2 *  This file is part of YaBS.
 3 *
 4 *      YaBS is free software: you can redistribute it and/or modify
 5 *      it under the terms of the GNU General Public License as published by
 6 *      the Free Software Foundation, either version 3 of the License, or
 7 *      (at your option) any later version.
 8 *
 9 *      YaBS is distributed in the hope that it will be useful,
10 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *      GNU General Public License for more details.
13 *
14 *      You should have received a copy of the GNU General Public License
15 *      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
16 */
17package mpv5.db.common;
18
19import mpv5.db.objects.User;
20
21/**
22 *
23 */
24public class UnableToLockException extends Exception {
25    private static final long serialVersionUID = 1L;
26
27    /**
28     * 
29     * @param context
30     * @param id
31     * @param user
32     */
33    public UnableToLockException(Context context, long id, User user) {
34        super("Unable to lock item: " + context.getDbIdentity() + " with ID " + id + " for user: " + user);
35    }
36}