]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/NonWritableVariableException.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / exception / NonWritableVariableException.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.db.layer0.exception;
13
14 import org.simantics.db.exception.VariableException;
15 import org.simantics.db.layer0.variable.Variable;
16
17 /**
18  * This exception should be thrown by Varible implementations when a modifying
19  * method is invoked but the variable is considered non-writable.
20  * 
21  * <p>
22  * Such modifying methods include
23  * <ul>
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>
28  * </ul>
29  * 
30  * @author Tuukka Lehtonen
31  */
32 public class NonWritableVariableException extends VariableException {
33
34     private static final long serialVersionUID = 2206215294220670641L;
35
36     public NonWritableVariableException() {
37         super();
38     }
39
40     public NonWritableVariableException(String message, Throwable cause) {
41         super(message, cause);
42     }
43
44     public NonWritableVariableException(String message) {
45         super(message);
46     }
47
48     public NonWritableVariableException(Throwable cause) {
49         super(cause);
50     }
51
52 }