]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/exception/ServiceNotFoundException.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / exception / ServiceNotFoundException.java
index cbaf995f328dd21f7ad99c3cd1ef94ab5d643e05..f0de408d1296de97813eefc9105dd05d4a64c7b5 100644 (file)
@@ -1,49 +1,49 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.db.exception;\r
-\r
-import org.simantics.db.ServiceLocator;\r
-\r
-/**\r
- * Thrown by {@link ServiceLocator} when requested services are unavailable.\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public class ServiceNotFoundException extends RuntimeDatabaseException {\r
-\r
-    private static final long    serialVersionUID = 2454410258587204157L;\r
-\r
-    private final ServiceLocator locator;\r
-    private final Class<?>       clazz;\r
-\r
-    public ServiceNotFoundException(ServiceLocator locator, Class<?> clazz, String message) {\r
-        super(message);\r
-        this.locator = locator;\r
-        this.clazz = clazz;\r
-    }\r
-\r
-    public ServiceNotFoundException(ServiceLocator locator, Class<?> clazz) {\r
-        this.locator = locator;\r
-        this.clazz = clazz;\r
-    }\r
-\r
-    @Override\r
-    public String toString() {\r
-        StringBuilder sb = new StringBuilder();\r
-        sb.append(clazz.getName()).append(" is not available in ").append(locator.toString());\r
-        String msg = getMessage();\r
-        if (msg != null)\r
-            sb.append(" - ").append(msg);\r
-        return sb.toString();\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.db.exception;
+
+import org.simantics.db.ServiceLocator;
+
+/**
+ * Thrown by {@link ServiceLocator} when requested services are unavailable.
+ * 
+ * @author Tuukka Lehtonen
+ */
+public class ServiceNotFoundException extends RuntimeDatabaseException {
+
+    private static final long    serialVersionUID = 2454410258587204157L;
+
+    private final ServiceLocator locator;
+    private final Class<?>       clazz;
+
+    public ServiceNotFoundException(ServiceLocator locator, Class<?> clazz, String message) {
+        super(message);
+        this.locator = locator;
+        this.clazz = clazz;
+    }
+
+    public ServiceNotFoundException(ServiceLocator locator, Class<?> clazz) {
+        this.locator = locator;
+        this.clazz = clazz;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(clazz.getName()).append(" is not available in ").append(locator.toString());
+        String msg = getMessage();
+        if (msg != null)
+            sb.append(" - ").append(msg);
+        return sb.toString();
+    }
+
+}