]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
1, Make exception string friendly, readable.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / autogen / AutoGen.java
index a8ec270355146dd8693d376a193171900050f649..d8249dd86cd9f244357eb4077ffca39fc472b84d 100644 (file)
@@ -462,7 +462,7 @@ public class AutoGen {
                 try {\r
                     this.myPcdAutogen.execute();\r
                 } catch (Exception exp) {\r
-                    throw new BuildException (exp.getMessage());\r
+                    throw new PcdAutogenException (exp.getMessage());\r
                 }\r
                \r
                if (this.myPcdAutogen != null) {\r
@@ -594,7 +594,7 @@ public class AutoGen {
         * @throws BuildException\r
         *             Failed to generate AutoGen.c.\r
         */\r
-       void libGenAutogenC() throws BuildException {\r
+       void libGenAutogenC() throws BuildException, PcdAutogenException {\r
                StringBuffer fileBuffer = new StringBuffer(10240);\r
 \r
                //\r
@@ -615,7 +615,7 @@ public class AutoGen {
                try {\r
                     this.myPcdAutogen.execute();\r
                } catch (Exception e) {\r
-                    throw new BuildException(e.getMessage());\r
+                    throw new PcdAutogenException(e.getMessage());\r
                }\r
 \r
                if (this.myPcdAutogen != null) {\r