]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/NonWritableVariableException.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / exception / NonWritableVariableException.java
1 /*******************************************************************************\r
2  * Copyright (c) 2012 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.db.layer0.exception;\r
13 \r
14 import org.simantics.db.layer0.variable.Variable;\r
15 \r
16 /**\r
17  * This exception should be thrown by Varible implementations when a modifying\r
18  * method is invoked but the variable is considered non-writable.\r
19  * \r
20  * <p>\r
21  * Such modifying methods include\r
22  * <ul>\r
23  * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object)}</li>\r
24  * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object, org.simantics.databoard.binding.Binding)\r
25  * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object)\r
26  * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object, org.simantics.databoard.binding.Binding)}</li>\r
27  * </ul>\r
28  * \r
29  * @author Tuukka Lehtonen\r
30  */\r
31 public class NonWritableVariableException extends VariableException {\r
32 \r
33     private static final long serialVersionUID = 2206215294220670641L;\r
34 \r
35     public NonWritableVariableException() {\r
36         super();\r
37     }\r
38 \r
39     public NonWritableVariableException(String message, Throwable cause) {\r
40         super(message, cause);\r
41     }\r
42 \r
43     public NonWritableVariableException(String message) {\r
44         super(message);\r
45     }\r
46 \r
47     public NonWritableVariableException(Throwable cause) {\r
48         super(cause);\r
49     }\r
50 \r
51 }\r