01: /*--------------------------------------------------------------------------*
02: | Copyright (C) 2006 Christopher Kohlhaas |
03: | |
04: | This program is free software; you can redistribute it and/or modify |
05: | it under the terms of the GNU General Public License as published by the |
06: | Free Software Foundation. A copy of the license has been included with |
07: | these distribution in the COPYING file, if not go to www.fsf.org |
08: | |
09: | As a special exception, you are granted the permissions to link this |
10: | program with every library, which license fulfills the Open Source |
11: | Definition as published by the Open Source Initiative (OSI). |
12: *--------------------------------------------------------------------------*/
13: package org.rapla.entities;
14:
15: /** This Exception is thrown when the application
16: wants to write to a read-only entity. You should use
17: the edit method to get a writable version of the entity.
18: */
19: public class ReadOnlyException extends RuntimeException {
20: private static final long serialVersionUID = 1L;
21:
22: public ReadOnlyException(Object object) {
23: super ("Can't modify entity [" + object
24: + "]. Use the edit-method to get a writable version!");
25: }
26: }
|