Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-15 13:36:42 -0400
committerRyan D. Brooks2010-09-15 13:36:42 -0400
commit0b653a4f5aea8e98ffbeca962ba7f33db06386e0 (patch)
tree1379fd2ee2a96edfff19ce5b30807d408baea2a9 /plugins
parenta8a499ac1513e4627862025afdcd1de422620c62 (diff)
downloadorg.eclipse.osee-0b653a4f5aea8e98ffbeca962ba7f33db06386e0.tar.gz
org.eclipse.osee-0b653a4f5aea8e98ffbeca962ba7f33db06386e0.tar.xz
org.eclipse.osee-0b653a4f5aea8e98ffbeca962ba7f33db06386e0.zip
refactor: Remove unnecessary exception EmptyResourceException
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java8
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/EmptyResourceException.java33
2 files changed, 0 insertions, 41 deletions
diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java
index a967d0ce00..8782f96ab4 100644
--- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java
+++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/ResourceManagerServlet.java
@@ -32,7 +32,6 @@ import org.eclipse.osee.framework.resource.management.IResourceLocator;
import org.eclipse.osee.framework.resource.management.IResourceLocatorManager;
import org.eclipse.osee.framework.resource.management.IResourceManager;
import org.eclipse.osee.framework.resource.management.Options;
-import org.eclipse.osee.framework.resource.management.exception.EmptyResourceException;
import org.eclipse.osee.framework.resource.management.exception.MalformedLocatorException;
/**
@@ -141,13 +140,6 @@ public class ResourceManagerServlet extends SecureOseeHttpServlet {
handleError(response,
String.format("Unable to locate resource: [%s] - %s", request.getRequestURI(), ex.getLocalizedMessage()),
ex);
- } catch (EmptyResourceException ex) {
- response.setStatus(HttpServletResponse.SC_NO_CONTENT);
- response.setContentType("text/plain");
- handleError(
- response,
- String.format("Unable to store empty resource: [%s] - %s", request.getRequestURI(),
- ex.getLocalizedMessage()), ex);
} catch (Exception ex) {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
response.setContentType("text/plain");
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/EmptyResourceException.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/EmptyResourceException.java
deleted file mode 100644
index 21785b27e3..0000000000
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/exception/EmptyResourceException.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.resource.management.exception;
-
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-
-/**
- * @author Roberto E. Escobar
- */
-public class EmptyResourceException extends OseeCoreException {
-
- private static final long serialVersionUID = 262834138993880676L;
-
- public EmptyResourceException(String message, Throwable cause) {
- super(message, cause);
- }
-
- public EmptyResourceException(String message) {
- super(message);
- }
-
- public EmptyResourceException(Throwable cause) {
- super(cause);
- }
-}

Back to the top