KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > core > error > OSSConcurentModifyException


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: OSSConcurentModifyException.java,v 1.5 2007/01/07 06:14:50 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems.core.error;
23
24 /**
25  * Exception thrown when there was a problem with concurent object
26  * modification. This happens when one user looks at some edit screen too long
27  * and meanwhile some other user modifies the data. Then when the first user
28  * tries to save his data, he will receive this exception and the data will
29  * not be modified to prevent overwriting and loss of data.
30  *
31  * @version $Id: OSSConcurentModifyException.java,v 1.5 2007/01/07 06:14:50 bastafidli Exp $
32  * @author Peter Satury
33  * @code.reviewer Miro Halas
34  * @code.reviewed 1.3 2006/02/17 06:54:08 bastafidli
35  */

36 public class OSSConcurentModifyException extends OSSException
37 {
38    // Attributes ///////////////////////////////////////////////////////////////
39

40    /**
41     * Generated serial version id for this class.
42     */

43    private static final long serialVersionUID = -1672103414523437585L;
44
45    // Constructors /////////////////////////////////////////////////////////////
46

47    /**
48     * Create new exception
49     */

50    public OSSConcurentModifyException()
51    {
52       super();
53    }
54
55    /**
56     * Create new exception
57     *
58     * @param message - message to display
59     */

60    public OSSConcurentModifyException(String JavaDoc message)
61    {
62       super(message);
63    }
64
65    /**
66     * Create new exception
67     *
68     * @param message - message to display
69     * @param cause - cause for error
70     */

71    public OSSConcurentModifyException(String JavaDoc message, Throwable JavaDoc cause)
72    {
73       super(message, cause);
74    }
75
76    /**
77     * Create new exception
78     *
79     * @param cause - cause for error
80     */

81    public OSSConcurentModifyException(Throwable JavaDoc cause)
82    {
83       super(cause);
84    }
85 }
86
Popular Tags