Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-14 19:28:08 -0400
committerRyan D. Brooks2010-09-14 19:28:08 -0400
commitce0877a8b2680199d56dcd74e5159ecbfdcabba2 (patch)
tree1ec7b5b72133693170faf56c0708d171b00f6665
parentd3bc26df78b2ead537913a710cabdee7722ecb47 (diff)
downloadorg.eclipse.osee-ce0877a8b2680199d56dcd74e5159ecbfdcabba2.tar.gz
org.eclipse.osee-ce0877a8b2680199d56dcd74e5159ecbfdcabba2.tar.xz
org.eclipse.osee-ce0877a8b2680199d56dcd74e5159ecbfdcabba2.zip
refactor: Remove unnecessary exception OseeTrackedChangesException
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java23
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java4
2 files changed, 2 insertions, 25 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java
deleted file mode 100644
index 6b57167b99..0000000000
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/OseeTrackedChangesException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.skynet.core.attribute;
-
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-
-public class OseeTrackedChangesException extends OseeArgumentException {
-
- private static final long serialVersionUID = -4953741614901835086L;
-
- public OseeTrackedChangesException(String message) {
- super(message);
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java
index dcabcd8cf6..bed894200c 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/WordAttribute.java
@@ -51,9 +51,9 @@ public class WordAttribute extends StringAttribute {
"This document contains track changes and cannot be saved with them. Do you want OSEE to remove them?" + "\n\nNote:You will need to reopen this artifact in OSEE to see the final result.")) {
returnValue = WordAnnotationHandler.removeAnnotations(value);
} else {
- throw new OseeTrackedChangesException(String.format(
+ throw new OseeCoreException(
"Artifact %s (%s), Branch %s (%s) contains track changes. Please remove them and save again.",
- art.getName(), art.getArtId(), branch.getName(), branch.getId()));
+ art.getName(), art.getArtId(), branch.getName(), branch.getId());
}
} catch (CoreException ex) {
OseeExceptions.wrapAndThrow(ex);

Back to the top