Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-14 16:54:49 +0000
committerRyan D. Brooks2010-09-14 16:54:49 +0000
commit74225843949515181df78245bfcb31147a805ba9 (patch)
tree93f998f89457d9df6ef5ace11c6127216d56bb47 /plugins/org.eclipse.osee.framework.resource.provider.attribute
parentf0f991b4f728f2e7550016da91eb2e8d2c8c750c (diff)
downloadorg.eclipse.osee-74225843949515181df78245bfcb31147a805ba9.tar.gz
org.eclipse.osee-74225843949515181df78245bfcb31147a805ba9.tar.xz
org.eclipse.osee-74225843949515181df78245bfcb31147a805ba9.zip
refactor: Directly support String.format in OseeCoreException constructors
Diffstat (limited to 'plugins/org.eclipse.osee.framework.resource.provider.attribute')
-rw-r--r--plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java b/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java
index 08cd35edb15..59b01dc8a92 100644
--- a/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java
+++ b/plugins/org.eclipse.osee.framework.resource.provider.attribute/src/org/eclipse/osee/framework/resource/provider/attribute/AttributeProvider.java
@@ -20,6 +20,7 @@ import java.util.Arrays;
import java.util.Collection;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeExceptions;
+import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.eclipse.osee.framework.core.server.OseeServerProperties;
import org.eclipse.osee.framework.jdk.core.util.Lib;
import org.eclipse.osee.framework.resource.management.IResource;
@@ -95,7 +96,7 @@ public class AttributeProvider implements IResourceProvider {
Lib.close(inputStream);
}
if (toReturn == null) {
- throw new IllegalStateException(String.format("We failed to save resource %s.", locator.getLocation()));
+ throw new OseeStateException("We failed to save resource %s.", locator.getLocation());
}
return toReturn;
}

Back to the top