--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2012 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.db.layer0.exception;\r
+\r
+import org.simantics.db.layer0.variable.Variable;\r
+\r
+/**\r
+ * This exception should be thrown by Varible implementations when a modifying\r
+ * method is invoked but the variable is considered non-writable.\r
+ * \r
+ * <p>\r
+ * Such modifying methods include\r
+ * <ul>\r
+ * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object)}</li>\r
+ * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object, org.simantics.databoard.binding.Binding)\r
+ * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object)\r
+ * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object, org.simantics.databoard.binding.Binding)}</li>\r
+ * </ul>\r
+ * \r
+ * @author Tuukka Lehtonen\r
+ */\r
+public class NonWritableVariableException extends VariableException {\r
+\r
+ private static final long serialVersionUID = 2206215294220670641L;\r
+\r
+ public NonWritableVariableException() {\r
+ super();\r
+ }\r
+\r
+ public NonWritableVariableException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+\r
+ public NonWritableVariableException(String message) {\r
+ super(message);\r
+ }\r
+\r
+ public NonWritableVariableException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+\r
+}\r