]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/exception/NonWritableVariableException.java
Index tokenized lowercase versions of name and types for UI searches
[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.layer0.variable.Variable;
15
16 /**
17  * This exception should be thrown by Varible implementations when a modifying
18  * method is invoked but the variable is considered non-writable.
19  * 
20  * <p>
21  * Such modifying methods include
22  * <ul>
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>
27  * </ul>
28  * 
29  * @author Tuukka Lehtonen
30  */
31 public class NonWritableVariableException extends VariableException {
32
33     private static final long serialVersionUID = 2206215294220670641L;
34
35     public NonWritableVariableException() {
36         super();
37     }
38
39     public NonWritableVariableException(String message, Throwable cause) {
40         super(message, cause);
41     }
42
43     public NonWritableVariableException(String message) {
44         super(message);
45     }
46
47     public NonWritableVariableException(Throwable cause) {
48         super(cause);
49     }
50
51 }