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: DeleteContentDataErrorException.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 DeleteContentDataErrorException extends
14: ContentManagerException {
15: private static final long serialVersionUID = -3693774941096316094L;
16:
17: private int mId = -1;
18:
19: public DeleteContentDataErrorException(int id,
20: DatabaseException cause) {
21: super (
22: "Unexpected error while deleting the content with the id '"
23: + id + "'.", cause);
24:
25: mId = id;
26: }
27:
28: public int getId() {
29: return mId;
30: }
31: }
|