01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: HasContentDataErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.contentstores.exceptions;
09:
10: import com.uwyn.rife.cmf.dam.exceptions.ContentManagerException;
11: import com.uwyn.rife.database.exceptions.DatabaseException;
12:
13: public class HasContentDataErrorException extends
14: ContentManagerException {
15: private static final long serialVersionUID = 3463539434963036313L;
16:
17: private int mId = -1;
18:
19: public HasContentDataErrorException(int id, DatabaseException cause) {
20: super ("Unexpected error the presence of content with the id '"
21: + id + "'.", cause);
22:
23: mId = id;
24: }
25:
26: public int getId() {
27: return mId;
28: }
29: }
|