Fixed grammar in messages.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1258 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lhauch 2006-08-14 19:21:03 +00:00
parent 719cebfea7
commit d653c17a85
5 changed files with 62 additions and 62 deletions

View File

@ -199,7 +199,7 @@ public abstract class PlatformPcdPreprocessAction {
if (modules == null) { if (modules == null) {
throw new PlatformPcdPreprocessException( throw new PlatformPcdPreprocessException(
"No modules in FPD file, Please check whether there are elements in <FrameworkModules> in FPD file!"); "No modules found in the FPD file.\nPlease check whether there are elements in <FrameworkModules> in the FPD file!");
} }
// //
@ -230,8 +230,8 @@ public abstract class PlatformPcdPreprocessAction {
tokenSpaceStrRet = getGuidInfoFromSpd(pcdBuildData.getTokenSpaceGuidCName()); tokenSpaceStrRet = getGuidInfoFromSpd(pcdBuildData.getTokenSpaceGuidCName());
if (tokenSpaceStrRet == null) { if (tokenSpaceStrRet == null) {
putError("Fail to get Token space guid for token" + pcdBuildData.getCName() + putError("Failed to get Token Space Guid for token " + pcdBuildData.getCName() +
" from all SPD files. You must have an <GuidDeclaration> for this token space Guid"); " from any SPD file. You must have an <GuidDeclaration> for this Token Space Guid!");
// //
// Do not break preprocess, continues to analysis. // Do not break preprocess, continues to analysis.
// All errors will be summary to be shown. // All errors will be summary to be shown.
@ -252,8 +252,8 @@ public abstract class PlatformPcdPreprocessAction {
if ((pcdType == Token.PCD_TYPE.FEATURE_FLAG) && if ((pcdType == Token.PCD_TYPE.FEATURE_FLAG) &&
(datumType != Token.DATUM_TYPE.BOOLEAN)){ (datumType != Token.DATUM_TYPE.BOOLEAN)){
exceptionString = String.format("In FPD file, for PCD %s in module %s, the PCD type is FEATRUE_FLAG but "+ exceptionString = String.format("In FPD file, for PCD %s in module %s, the PCD type is FEATURE_FLAG but "+
"datum type of this PCD entry is not BOOLEAN!", "datum type for this PCD entry is not BOOLEAN!",
pcdBuildData.getCName(), pcdBuildData.getCName(),
moduleName); moduleName);
putError(exceptionString); putError(exceptionString);
@ -274,7 +274,7 @@ public abstract class PlatformPcdPreprocessAction {
// Value is required. // Value is required.
// //
if (datum == null) { if (datum == null) {
exceptionString = String.format("In FPD file, there is no value for PCD entry %s in module %s!", exceptionString = String.format("In the FPD file, there is no value for PCD entry %s in module %s!",
pcdBuildData.getCName(), pcdBuildData.getCName(),
moduleName); moduleName);
putError(exceptionString); putError(exceptionString);
@ -319,7 +319,7 @@ public abstract class PlatformPcdPreprocessAction {
// modules. // modules.
// //
if (token.datumType != datumType) { if (token.datumType != datumType) {
exceptionString = String.format("In FPD file, the datum type of PCD entry %s is %s, which is different with %s defined in before!", exceptionString = String.format("In the FPD file, the datum type of the PCD entry %s is %s, which is different from %s which was previously defined!",
pcdBuildData.getCName(), pcdBuildData.getCName(),
pcdBuildData.getDatumType().toString(), pcdBuildData.getDatumType().toString(),
Token.getStringOfdatumType(token.datumType)); Token.getStringOfdatumType(token.datumType));
@ -335,7 +335,7 @@ public abstract class PlatformPcdPreprocessAction {
// Check token number is valid // Check token number is valid
// //
if (tokenNumber != token.tokenNumber) { if (tokenNumber != token.tokenNumber) {
exceptionString = String.format("In FPD file, the token number of PCD entry %s in module %s is different with same PCD entry in other modules!", exceptionString = String.format("In the FPD file, the token number of PCD entry %s in module %s is different from the same PCD entry in other modules!",
pcdBuildData.getCName(), pcdBuildData.getCName(),
moduleName); moduleName);
putError(exceptionString); putError(exceptionString);
@ -350,8 +350,8 @@ public abstract class PlatformPcdPreprocessAction {
// For same PCD used in different modules, the PCD type should all be dynamic or non-dynamic. // For same PCD used in different modules, the PCD type should all be dynamic or non-dynamic.
// //
if (token.isDynamicPCD != Token.isDynamic(pcdType)) { if (token.isDynamicPCD != Token.isDynamic(pcdType)) {
exceptionString = String.format("In FPD file, for PCD entry %s in module %s, you define dynamic or non-dynamic PCD type which"+ exceptionString = String.format("In the FPD file, for PCD entry %s in module %s, you defined dynamic or non-dynamic PCD type which"+
" is different with others module's", " is different from other module's definition.",
token.cName, token.cName,
moduleName); moduleName);
putError(exceptionString); putError(exceptionString);
@ -372,9 +372,9 @@ public abstract class PlatformPcdPreprocessAction {
(token.getDefaultSku().type == DynamicTokenValue.VALUE_TYPE.DEFAULT_TYPE) && (token.getDefaultSku().type == DynamicTokenValue.VALUE_TYPE.DEFAULT_TYPE) &&
(datum != null)) { (datum != null)) {
if (!datum.equalsIgnoreCase(token.getDefaultSku().value)) { if (!datum.equalsIgnoreCase(token.getDefaultSku().value)) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in module %s, the datum in <ModuleSA> is "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in module %s, the datum in <ModuleSA> is "+
"not equal to the datum in <DynamicPcdBuildDefinitions>, it is "+ "not equal to the datum type in <DynamicPcdBuildDefinitions>. This is "+
"illega! You could no set <Value> in <ModuleSA> for a dynamic PCD!", "illega! You cannot set <Value> in <ModuleSA> for a dynamic PCD!",
token.cName, token.cName,
moduleName); moduleName);
putError(exceptionString); putError(exceptionString);
@ -388,8 +388,8 @@ public abstract class PlatformPcdPreprocessAction {
if ((maxDatumSize != 0) && if ((maxDatumSize != 0) &&
(maxDatumSize != token.datumSize)){ (maxDatumSize != token.datumSize)){
exceptionString = String.format("In FPD file, for dynamic PCD %s in module %s, the max datum size is %d which "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in module %s, the max datum size is %d which "+
"is different with <MaxDatumSize> %d defined in <DynamicPcdBuildDefinitions>!", "is different than <MaxDatumSize> %d defined in <DynamicPcdBuildDefinitions>!",
token.cName, token.cName,
moduleName, moduleName,
maxDatumSize, maxDatumSize,
@ -411,8 +411,8 @@ public abstract class PlatformPcdPreprocessAction {
tokenSpaceStrRet = getGuidInfoFromSpd(pcdBuildData.getTokenSpaceGuidCName()); tokenSpaceStrRet = getGuidInfoFromSpd(pcdBuildData.getTokenSpaceGuidCName());
if (tokenSpaceStrRet == null) { if (tokenSpaceStrRet == null) {
putError("Fail to get Token space guid for token" + token.cName + putError("Failed to get the Token Space Guid for token" + token.cName +
" from all SPD files. You must have an <GuidDeclaration> for this token space Guid"); " from any SPD file. You must have a <GuidDeclaration> for this Token Space Guid!");
// //
// Do not break preprocess, continues to analysis. // Do not break preprocess, continues to analysis.
// All errors will be summary to be shown. // All errors will be summary to be shown.
@ -461,8 +461,8 @@ public abstract class PlatformPcdPreprocessAction {
datum, datum,
maxDatumSize); maxDatumSize);
if (!token.addUsageInstance(usageInstance)) { if (!token.addUsageInstance(usageInstance)) {
putError(String.format("PCD %s for module %s(%s) has already exist in database, Please check all PCD build entries "+ putError(String.format("PCD %s for module %s(%s) already exists in the database.\nPlease check all PCD build entries "+
"in modules %s in <ModuleSA> to make sure no duplicated definitions in FPD file!", "in the %s module's <ModuleSA> section to make sure there are no duplicated definitions in the FPD file!",
token.cName, token.cName,
modules.get(index).usageId.moduleGuid, modules.get(index).usageId.moduleGuid,
moduleName, moduleName,
@ -519,9 +519,9 @@ public abstract class PlatformPcdPreprocessAction {
dynamicInfo = getDynamicInfoFromFpd(token, moduleName); dynamicInfo = getDynamicInfoFromFpd(token, moduleName);
if (dynamicInfo == null) { if (dynamicInfo == null) {
exceptionString = String.format("In FPD file, for Dynamic PCD %s used by module %s, "+ exceptionString = String.format("In the FPD file, the Dynamic PCD %s is used by module %s.\n" +
"there is no dynamic information in <DynamicPcdBuildDefinitions> "+ "However, there is no dynamic information in the <DynamicPcdBuildDefinitions> " +
"in FPD file, but it is required!", "section of the FPD file. This section is required!",
token.cName, token.cName,
moduleName); moduleName);
putError(exceptionString); putError(exceptionString);
@ -541,8 +541,8 @@ public abstract class PlatformPcdPreprocessAction {
if ((maxDatumSize != 0) && if ((maxDatumSize != 0) &&
(maxDatumSize != token.datumSize)) { (maxDatumSize != token.datumSize)) {
exceptionString = String.format("In FPD file, for dynamic PCD %s, the datum size in module %s is %d, but "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s, the datum size in module %s is %d, but "+
"the datum size in <DynamicPcdBuildDefinitions> is %d, they are not match!", "the datum size in <DynamicPcdBuildDefinitions> is %d, they do not match!",
token.cName, token.cName,
moduleName, moduleName,
maxDatumSize, maxDatumSize,
@ -552,8 +552,8 @@ public abstract class PlatformPcdPreprocessAction {
} }
tokenNumber = Long.decode(dynamicInfo.getToken().toString()); tokenNumber = Long.decode(dynamicInfo.getToken().toString());
if (tokenNumber != token.tokenNumber) { if (tokenNumber != token.tokenNumber) {
exceptionString = String.format("In FPD file, for dynamic PCD %s, the token number in module %s is 0x%x, but"+ exceptionString = String.format("In the FPD file, for dynamic PCD %s, the token number in module %s is 0x%x, but "+
"in <DynamicPcdBuildDefinictions>, the token number is 0x%x, they are not match!", "in the <DynamicPcdBuildDefinictions> section, the token number is 0x%x, they do not match!",
token.cName, token.cName,
moduleName, moduleName,
token.tokenNumber, token.tokenNumber,
@ -602,9 +602,9 @@ public abstract class PlatformPcdPreprocessAction {
if (datum != null) { if (datum != null) {
if ((skuInstance.id == 0) && if ((skuInstance.id == 0) &&
!datum.toString().equalsIgnoreCase(skuInfoList.get(index).getValue().toString())) { !datum.toString().equalsIgnoreCase(skuInfoList.get(index).getValue().toString())) {
exceptionString = "In FPD file, for dynamic PCD " + token.cName + ", the value in module " + moduleName + " is " + datum.toString() + " but the "+ exceptionString = "In the FPD file, for dynamic PCD " + token.cName + ", the value in module " + moduleName + " is " + datum.toString() + " but the "+
"value of sku 0 data in <DynamicPcdBuildDefinition> is " + skuInstance.value.value + ". They are must be same!"+ "value of SKU 0 data in <DynamicPcdBuildDefinition> is " + skuInstance.value.value + ". They must be same!"+
" or you could not define value for a dynamic PCD in every <ModuleSA>!"; " Also, you cannot define a value for a dynamic PCD in the <ModuleSA> section!";
putError(exceptionString); putError(exceptionString);
return null; return null;
} }
@ -618,8 +618,8 @@ public abstract class PlatformPcdPreprocessAction {
if (skuInfoList.get(index).getVariableName() != null) { if (skuInfoList.get(index).getVariableName() != null) {
exceptionString = null; exceptionString = null;
if (skuInfoList.get(index).getVariableGuid() == null) { if (skuInfoList.get(index).getVariableGuid() == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+
"file, who use HII, but there is no <VariableGuid> defined for Sku %d data!", "file, use of HII was defined, but there is no <VariableGuid> defined for SKU %d data!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -627,8 +627,8 @@ public abstract class PlatformPcdPreprocessAction {
} }
if (skuInfoList.get(index).getVariableOffset() == null) { if (skuInfoList.get(index).getVariableOffset() == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+
"file, who use HII, but there is no <VariableOffset> defined for Sku %d data!", "file, use of HII was defined, but there is no <VariableOffset> defined for SKU %d data!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -636,8 +636,8 @@ public abstract class PlatformPcdPreprocessAction {
} }
if (skuInfoList.get(index).getHiiDefaultValue() == null) { if (skuInfoList.get(index).getHiiDefaultValue() == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+
"file, who use HII, but there is no <HiiDefaultValue> defined for Sku %d data!", "file, use of HII was defined, but there is no <HiiDefaultValue> defined for SKU %d data!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -660,8 +660,8 @@ public abstract class PlatformPcdPreprocessAction {
offset = Integer.decode(skuInfoList.get(index).getVariableOffset()); offset = Integer.decode(skuInfoList.get(index).getVariableOffset());
if (offset > 0xFFFF) { if (offset > 0xFFFF) {
putError(String.format("In FPD file, for dynamic PCD %s , the variable offset defined in sku %d data "+ putError(String.format("In the FPD file, for dynamic PCD %s, the variable offset defined in SKU %d data "+
"exceed 64K, it is not allowed!", "exceeds 64K, which is not allowed!",
token.cName, token.cName,
index)); index));
return null; return null;
@ -672,7 +672,7 @@ public abstract class PlatformPcdPreprocessAction {
// //
variableGuidString = getGuidInfoFromSpd(skuInfoList.get(index).getVariableGuid().toString()); variableGuidString = getGuidInfoFromSpd(skuInfoList.get(index).getVariableGuid().toString());
if (variableGuidString == null) { if (variableGuidString == null) {
putError(String.format("In FPD file, for dynamic PCD %s, the variable guid %s can be found in all SPD file!", putError(String.format("In the FPD file, for dynamic PCD %s, the variable guid: %s cannot be found in any SPD file!",
token.cName, token.cName,
skuInfoList.get(index).getVariableGuid().toString())); skuInfoList.get(index).getVariableGuid().toString()));
return null; return null;
@ -700,16 +700,16 @@ public abstract class PlatformPcdPreprocessAction {
continue; continue;
} }
exceptionString = String.format("In FPD file, for dynamic PCD %s, the dynamic info must "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s, the dynamic info must "+
"be one of 'DefaultGroup', 'HIIGroup', 'VpdGroup'.", "be one of: 'DefaultGroup', 'HIIGroup', 'VpdGroup'.",
token.cName); token.cName);
putError(exceptionString); putError(exceptionString);
return null; return null;
} }
if (!hasSkuId0) { if (!hasSkuId0) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions>, there are "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions>, there is "+
"no sku id = 0 data, which is required for every dynamic PCD", "no SKU ID = 0 data, which is required for every dynamic PCD",
token.cName); token.cName);
putError(exceptionString); putError(exceptionString);
return null; return null;
@ -751,7 +751,7 @@ public abstract class PlatformPcdPreprocessAction {
tokenSpaceStrRet = getGuidInfoFromSpd(pcdBuildData.getTokenSpaceGuidCName()); tokenSpaceStrRet = getGuidInfoFromSpd(pcdBuildData.getTokenSpaceGuidCName());
if (tokenSpaceStrRet == null) { if (tokenSpaceStrRet == null) {
putError("Fail to get Token space guid for token" + pcdBuildData.getCName()); putError("Failed to get the Token Space Guid for token" + pcdBuildData.getCName());
continue; continue;
} }
@ -764,7 +764,7 @@ public abstract class PlatformPcdPreprocessAction {
pcdType = Token.getPcdTypeFromString(pcdBuildData.getItemType().toString()); pcdType = Token.getPcdTypeFromString(pcdBuildData.getItemType().toString());
if (pcdType != Token.PCD_TYPE.DYNAMIC_EX) { if (pcdType != Token.PCD_TYPE.DYNAMIC_EX) {
putError(String.format("In FPD file, it not allowed for DYNAMIC PCD %s who is no used by any module", putError(String.format("In the FPD file, it not allowed to define DYNAMIC PCD %s that is not used by any module",
pcdBuildData.getCName())); pcdBuildData.getCName()));
continue; continue;
} }
@ -832,8 +832,8 @@ public abstract class PlatformPcdPreprocessAction {
if (skuInfoList.get(index).getVariableName() != null) { if (skuInfoList.get(index).getVariableName() != null) {
exceptionString = null; exceptionString = null;
if (skuInfoList.get(index).getVariableGuid() == null) { if (skuInfoList.get(index).getVariableGuid() == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in the <DynamicPcdBuildDefinitions> section of the FPD "+
"file, who use HII, but there is no <VariableGuid> defined for Sku %d data!", "file, use of HII is defined, but there is no <VariableGuid> defined for SKU %d data!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -841,8 +841,8 @@ public abstract class PlatformPcdPreprocessAction {
} }
if (skuInfoList.get(index).getVariableOffset() == null) { if (skuInfoList.get(index).getVariableOffset() == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in the <DynamicPcdBuildDefinitions> section of the FPD "+
"file, who use HII, but there is no <VariableOffset> defined for Sku %d data!", "file, use of HII is defined, but there is no <VariableOffset> defined for SKU %d data!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -850,8 +850,8 @@ public abstract class PlatformPcdPreprocessAction {
} }
if (skuInfoList.get(index).getHiiDefaultValue() == null) { if (skuInfoList.get(index).getHiiDefaultValue() == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions> section in FPD "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in the <DynamicPcdBuildDefinitions> section of the FPD "+
"file, who use HII, but there is no <HiiDefaultValue> defined for Sku %d data!", "file, use of HII is defined, but there is no <HiiDefaultValue> defined for SKU %d data!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -875,8 +875,8 @@ public abstract class PlatformPcdPreprocessAction {
offset = Integer.decode(skuInfoList.get(index).getVariableOffset()); offset = Integer.decode(skuInfoList.get(index).getVariableOffset());
if (offset > 0xFFFF) { if (offset > 0xFFFF) {
exceptionString = String.format("In FPD file, for dynamic PCD %s , the variable offset defined in sku %d data "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s, the variable offset defined in SKU %d data "+
"exceed 64K, it is not allowed!", "exceeds 64K, which is not allowed!",
token.cName, token.cName,
index); index);
putError(exceptionString); putError(exceptionString);
@ -888,7 +888,7 @@ public abstract class PlatformPcdPreprocessAction {
// //
variableGuidString = getGuidInfoFromSpd(skuInfoList.get(index).getVariableGuid().toString()); variableGuidString = getGuidInfoFromSpd(skuInfoList.get(index).getVariableGuid().toString());
if (variableGuidString == null) { if (variableGuidString == null) {
exceptionString = String.format("In FPD file, for dynamic PCD %s, the variable guid %s can be found in all SPD file!", exceptionString = String.format("In the FPD file, for dynamic PCD %s, the variable guid %s cannot be found in any SPD file!",
token.cName, token.cName,
skuInfoList.get(index).getVariableGuid().toString()); skuInfoList.get(index).getVariableGuid().toString());
putError(exceptionString); putError(exceptionString);
@ -917,15 +917,15 @@ public abstract class PlatformPcdPreprocessAction {
continue; continue;
} }
exceptionString = String.format("In FPD file, for dynamic PCD %s, the dynamic info must "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s, the dynamic info must "+
"be one of 'DefaultGroup', 'HIIGroup', 'VpdGroup'.", "be one of 'DefaultGroup', 'HIIGroup', 'VpdGroup'.",
token.cName); token.cName);
putError(exceptionString); putError(exceptionString);
} }
if (!hasSkuId0) { if (!hasSkuId0) {
exceptionString = String.format("In FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions>, there are "+ exceptionString = String.format("In the FPD file, for dynamic PCD %s in <DynamicPcdBuildDefinitions>, there is "+
"no sku id = 0 data, which is required for every dynamic PCD", "no SKU ID = 0 data, which is required for every dynamic PCD",
token.cName); token.cName);
putError(exceptionString); putError(exceptionString);
continue; continue;
@ -984,7 +984,7 @@ public abstract class PlatformPcdPreprocessAction {
if ((uuidString.charAt(0) == '0') && ((uuidString.charAt(1) == 'x') || (uuidString.charAt(1) == 'X'))) { if ((uuidString.charAt(0) == '0') && ((uuidString.charAt(1) == 'x') || (uuidString.charAt(1) == 'X'))) {
splitStringArray = uuidString.split("," ); splitStringArray = uuidString.split("," );
if (splitStringArray.length != 11) { if (splitStringArray.length != 11) {
throw new PlatformPcdPreprocessException ("Wrong format for UUID string: " + uuidString); throw new PlatformPcdPreprocessException ("Wrong format for GUID string: " + uuidString);
} }
// //

View File

@ -316,7 +316,7 @@ public class CommonDefinition {
return guid; return guid;
} else { } else {
System.out System.out
.println("Check GUID Value, it don't conform to the schema!!!"); .println("Check GUID Value, it doesn't conform to the registry format specified by the schema!!!");
return "0"; return "0";
} }

View File

@ -143,7 +143,7 @@ public class DynamicTokenValue {
for (index = 0; index < size; index++) { for (index = 0; index < size; index++) {
num = Integer.decode(variableName.get(index).toString()); num = Integer.decode(variableName.get(index).toString());
if ((num > 127 ) || (num < 0)) { if ((num > 127 ) || (num < 0)) {
throw new EntityException(String.format("variable name contains >0x80 character, now is not support!")); throw new EntityException(String.format("The variable name contains more than 0x80 characters; this is not supported at thist time!"));
} }
str += (char)num; str += (char)num;
} }

View File

@ -213,7 +213,7 @@ public class MemoryDatabaseManager {
// We only support Dynamice(EX) type for PEI and DXE phase. // We only support Dynamice(EX) type for PEI and DXE phase.
// If it is not referenced in either PEI or DXE, throw exception now. // If it is not referenced in either PEI or DXE, throw exception now.
// //
throw new EntityException("[PCD tool Internal Error] Dynamic(EX) PCD Entries are referenced in module that is not in PEI phase nor in DXE phase."); throw new EntityException("[PCD Tool Internal Error] Dynamic(EX) PCD Entries are referenced in a module that is not used in either PEI or DXE phases.");
} }
} }
} }

View File

@ -26,6 +26,6 @@ public class EntityException extends Exception {
@param expStr exception message string. @param expStr exception message string.
**/ **/
public EntityException(String expStr) { public EntityException(String expStr) {
super("[PCD tools Internal Errors]:" + expStr); super("[PCD Tool Internal Error]:" + expStr);
} }
} }