Remove unnecessary exception caching.
[mirror_edk2.git] / 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
-      @throws PlatformPcdPreprocessException\r
-                            Fail to get Guid information from SPD file.\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