1 /*******************************************************************************
2 * Copyright (c) 2012 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.db.layer0.exception;
14 import org.simantics.db.exception.VariableException;
15 import org.simantics.db.layer0.variable.Variable;
18 * This exception should be thrown by Varible implementations when a modifying
19 * method is invoked but the variable is considered non-writable.
22 * Such modifying methods include
24 * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object)}</li>
25 * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object, org.simantics.databoard.binding.Binding)
26 * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object)
27 * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object, org.simantics.databoard.binding.Binding)}</li>
30 * @author Tuukka Lehtonen
32 public class NonWritableVariableException extends VariableException {
34 private static final long serialVersionUID = 2206215294220670641L;
36 public NonWritableVariableException() {
40 public NonWritableVariableException(String message, Throwable cause) {
41 super(message, cause);
44 public NonWritableVariableException(String message) {
48 public NonWritableVariableException(Throwable cause) {