KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > perseus > persistence > api > PersistentObjectLifeCycleExcpetion


1 /**
2  * Copyright (C) 2001-2003 France Telecom R&D
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library 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 GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.objectweb.perseus.persistence.api;
19
20 /**
21  * This exception is raised when the user want to
22  * - unexport, read or write a non persistent object
23  *
24  * @author S.Chassande-Barrioz
25  */

26 public class PersistentObjectLifeCycleExcpetion extends PersistenceException {
27
28     public final static String JavaDoc UNEXPORT_NPO_MSG = "Impossible to remove a non persistent object";
29     public final static String JavaDoc READ_NPO_MSG = "Impossible to read a non persistent object";
30     public final static String JavaDoc WRITE_NPO_MSG = "Impossible to write a non persistent object";
31
32     public PersistentObjectLifeCycleExcpetion() {
33     }
34
35     public PersistentObjectLifeCycleExcpetion(String JavaDoc msg) {
36         super(msg);
37     }
38
39     public PersistentObjectLifeCycleExcpetion(Exception JavaDoc nested) {
40         super(nested);
41     }
42
43     public PersistentObjectLifeCycleExcpetion(String JavaDoc msg, Exception JavaDoc nested) {
44         super(msg, nested);
45     }
46 }
47
Popular Tags