Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-14 20:17:21 -0400
committerRyan D. Brooks2010-09-14 20:17:21 -0400
commitb3efdd364ef2e168e5fe519356ef5528afda888b (patch)
tree9c99c310126143e0b64febd8e3273d7c48aa86f9 /plugins
parent74405b0789f7f4cae914aab07494427076b8f75d (diff)
downloadorg.eclipse.osee-b3efdd364ef2e168e5fe519356ef5528afda888b.tar.gz
org.eclipse.osee-b3efdd364ef2e168e5fe519356ef5528afda888b.tar.xz
org.eclipse.osee-b3efdd364ef2e168e5fe519356ef5528afda888b.zip
refactor: Remove unnecessary exception InvalidTaggerException
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/InvalidTaggerException.java22
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/AttributeTaggerProviderManagerImpl.java4
2 files changed, 2 insertions, 24 deletions
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/InvalidTaggerException.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/InvalidTaggerException.java
deleted file mode 100644
index e8b09a3d43..0000000000
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/InvalidTaggerException.java
+++ /dev/null
@@ -1,22 +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.core.exception;
-
-/**
- * @author Roberto E. Escobar
- */
-public class InvalidTaggerException extends OseeCoreException {
- private static final long serialVersionUID = 1L;
-
- public InvalidTaggerException() {
- super("");
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/AttributeTaggerProviderManagerImpl.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/AttributeTaggerProviderManagerImpl.java
index 61d9d48b3a..2d098270a2 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/AttributeTaggerProviderManagerImpl.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/AttributeTaggerProviderManagerImpl.java
@@ -13,9 +13,9 @@ package org.eclipse.osee.framework.search.engine.internal;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
-import org.eclipse.osee.framework.core.exception.InvalidTaggerException;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.message.SearchOptions;
+import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.eclipse.osee.framework.core.model.cache.AttributeTypeCache;
import org.eclipse.osee.framework.core.model.type.AttributeType;
import org.eclipse.osee.framework.jdk.core.type.MatchLocation;
@@ -52,7 +52,7 @@ public class AttributeTaggerProviderManagerImpl implements IAttributeTaggerProvi
AttributeType attributeType = typeCache.getById(attrTypeId);
IAttributeTaggerProvider toReturn = this.attributeTaggerProviders.get(attributeType.getTaggerId());
if (toReturn == null) {
- throw new InvalidTaggerException();
+ throw new OseeStateException("No tagger found for id " + attributeType.getTaggerId());
}
return toReturn;
}

Back to the top