Remove unnecessary exception caching.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 20 Oct 2006 09:28:08 +0000 (09:28 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 20 Oct 2006 09:28:08 +0000 (09:28 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1803 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/GenBuild/org/tianocore/build/pcd/action/PlatformPcdPreprocessActionForBuilding.java

index 5ce11c5..234fbff 100644 (file)
@@ -139,17 +139,9 @@ public class PlatformPcdPreprocessActionForBuilding extends PlatformPcdPreproces
       @param guidCName      Guid CName string.\r
 \r
       @return String        Guid information from SPD file.\r
       @param guidCName      Guid CName string.\r
 \r
       @return String        Guid information from SPD file.\r
-      @throws PlatformPcdPreprocessException\r
-                            Fail to get Guid information from SPD file.\r
     **/\r
     **/\r
-    public String getGuidInfoFromSpd(String guidCName) throws PlatformPcdPreprocessException {\r
-        String tokenSpaceStrRet = null;\r
-        try {\r
-            tokenSpaceStrRet = GlobalData.getGuidInfoFromCname(guidCName);\r
-        } catch ( Exception e ) {\r
-            throw new PlatformPcdPreprocessException ("Failed to get Guid CName " + guidCName + " from the SPD file!");\r
-        }\r
-        return tokenSpaceStrRet;\r
+    public String getGuidInfoFromSpd(String guidCName) {\r
+        return GlobalData.getGuidInfoFromCname(guidCName);\r
     }\r
 \r
     /**\r
     }\r
 \r
     /**\r