]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/src/org/simantics/databoard/method/InvokeException.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / method / InvokeException.java
1 /*******************************************************************************
2  *  Copyright (c) 2010 Association for Decentralized Information Management in
3  *  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.databoard.method;
13
14
15 /**
16  * A wrapper to an exception that occured when trying to invoke a methods.
17  * For instance, file or network error or closed session.
18  * 
19  * Wraps exeptions like SessionClosedException, and IOException.
20  * This exception does not cover errors that occure during the invocation
21  * of the method. 
22  *
23  * TODO Make non-runtime
24  *
25  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
26  */
27 public class InvokeException extends RuntimeException {
28
29         private static final long serialVersionUID = 1L;
30         
31         public InvokeException(Exception cause) {
32                 super(cause);
33         }
34
35         public InvokeException(String message, Exception cause) {
36                 super(message, cause);
37         }
38         
39 }
40