]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/exception/NoSingleResultException.java
8c3e9dbe3ff0e0dfc6d5e537d06a4d4ffc44fdd5
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / exception / NoSingleResultException.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 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.exception;
13
14 import org.simantics.db.Resource;
15
16 public class NoSingleResultException extends AssumptionException {
17
18     private static final long serialVersionUID = 1647209154838034514L;
19
20     public NoSingleResultException(NoSingleResultException cause) {
21         super(cause.getMessage());
22     }
23     
24     public NoSingleResultException(DatabaseException cause) {
25         super(cause.getMessage());
26     }
27
28     public NoSingleResultException(String message, Throwable cause) {
29         super(message, cause);
30     }
31
32     public NoSingleResultException(String message, int ... rs) {
33         super(message, rs);
34     }
35     
36     public NoSingleResultException(String message) {
37         super(message);
38     }
39
40     public NoSingleResultException(String message, DatabaseException cause) {
41         super(message, cause);
42     }
43
44     public NoSingleResultException(String message, Resource ... resources) {
45         super(message, resources);
46     }
47
48 }