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.layer0.variable.Variable;
17 * This exception should be thrown by Varible implementations when a modifying
18 * method is invoked but the variable is considered non-writable.
21 * Such modifying methods include
23 * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object)}</li>
24 * <li>{@link Variable#setPropertyValue(org.simantics.db.WriteGraph, String, Object, org.simantics.databoard.binding.Binding)
25 * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object)
26 * <li>{@link Variable#setValue(org.simantics.db.WriteGraph, Object, org.simantics.databoard.binding.Binding)}</li>
29 * @author Tuukka Lehtonen
31 public class NonWritableVariableException extends VariableException {
33 private static final long serialVersionUID = 2206215294220670641L;
35 public NonWritableVariableException() {
39 public NonWritableVariableException(String message, Throwable cause) {
40 super(message, cause);
43 public NonWritableVariableException(String message) {
47 public NonWritableVariableException(Throwable cause) {