01: /*
02: * Copyright (c) 2001 - 2005 ivata limited.
03: * All rights reserved.
04: * -----------------------------------------------------------------------------
05: * ivata groupware may be redistributed under the GNU General Public
06: * License as published by the Free Software Foundation;
07: * version 2 of the License.
08: *
09: * These programs are free software; you can redistribute them and/or
10: * modify them under the terms of the GNU General Public License
11: * as published by the Free Software Foundation; version 2 of the License.
12: *
13: * These programs are distributed in the hope that they will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16: *
17: * See the GNU General Public License in the file LICENSE.txt for more
18: * details.
19: *
20: * If you would like a copy of the GNU General Public License write to
21: *
22: * Free Software Foundation, Inc.
23: * 59 Temple Place - Suite 330
24: * Boston, MA 02111-1307, USA.
25: *
26: *
27: * To arrange commercial support and licensing, contact ivata at
28: * http://www.ivata.com/contact.jsp
29: * -----------------------------------------------------------------------------
30: * $Log: RightViolationException.java,v $
31: * Revision 1.2 2005/10/11 18:55:29 colinmacleod
32: * Fixed some checkstyle and javadoc issues.
33: *
34: * Revision 1.1 2005/09/29 12:10:24 colinmacleod
35: * Moved from ivata groupware to ivata cms.
36: *
37: */
38: package com.ivata.mask.persistence;
39:
40: /**
41: * Thrown whenever a user right is violated.
42: *
43: * @since ivata groupware 1.0 (23-Sep-2005)
44: * @author Colin MacLeod
45: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
46: * @version $Revision: 1.2 $
47: */
48: public class RightViolationException extends PersistenceException {
49: /**
50: * Serialization version (for <code>Serializable</code> interface).
51: */
52: private static final long serialVersionUID = 1L;
53:
54: /**
55: * Constructor.
56: *
57: * @param dataObjectClass Class which was being modified.
58: * @param message Clear text message tell the user what he dun did wrong.
59: */
60: public RightViolationException(final Class dataObjectClass,
61: final String message) {
62: super ("User right violation on class '" + dataObjectClass
63: + "': " + message);
64: }
65: }
|