Home
last modified time | relevance | path

Searched refs:errorMsg (Results 1 - 9 of 9) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
H A DValidateUtils.java35 * @param errorMsg Error msg to throw
38 public static void throwIfNotMatches(boolean isMatch, ERROR error, String errorMsg) throws CustomException { in throwIfNotMatches() argument
40 CustomException.throwException(error, errorMsg); in throwIfNotMatches()
49 * @param errorMsg Error msg to throw
52 public static void throwIfMatches(boolean isMatch, ERROR error, String errorMsg) throws CustomException { in throwIfMatches() argument
53 throwIfNotMatches(!isMatch, error, errorMsg); in throwIfMatches()
H A DCertUtils.java184 String errorMsg = String.format("Format error, must be \"X=xx,XX=xxx,...\", please check: \"%s\"", nameString); in checkDN()
185 ValidateUtils.throwIfNotMatches(!StringUtils.isEmpty(nameString), ERROR.COMMAND_ERROR, errorMsg); in checkDN()
188 ValidateUtils.throwIfNotMatches(!StringUtils.isEmpty(nameString.trim()), ERROR.COMMAND_ERROR, errorMsg); in checkDN()
190 ValidateUtils.throwIfNotMatches(kvPair.length == SECOND_INDEX, ERROR.COMMAND_ERROR, errorMsg); in checkDN()
192 ValidateUtils.throwIfNotMatches(!StringUtils.isEmpty(kvPair[1].trim()), ERROR.COMMAND_ERROR, errorMsg); in checkDN()
/developtools/profiler/device/base/test/unittest/
H A Dcommon_test.cpp35 std::string errorMsg = GetErrorMsg(); in WriteFile() local
36 PROFILER_LOG_ERROR(LOG_CORE, "WriteFile: fopen() fail, %s, %s", filePath.c_str(), errorMsg.c_str()); in WriteFile()
42 std::string errorMsg = GetErrorMsg(); in WriteFile() local
43 PROFILER_LOG_ERROR(LOG_CORE, "WriteFile: fwrite() fail, %s", errorMsg.c_str()); in WriteFile()
49 std::string errorMsg = GetErrorMsg(); in WriteFile() local
50 PROFILER_LOG_ERROR(LOG_CORE, "WriteFile: fflush() error = %s", errorMsg.c_str()); in WriteFile()
57 std::string errorMsg = GetErrorMsg(); in WriteFile() local
58 PROFILER_LOG_ERROR(LOG_CORE, "CreateConfigFile: fclose() error = %s", errorMsg.c_str()); in WriteFile()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
H A DVerifyAndParseProvision.java48 String errorMsg = "Check input provision file failed!"; in verifyAndParseProvision()
49 LOGGER.error(errorMsg); in verifyAndParseProvision()
H A DVerifyHap.java248 String errorMsg = "ZIP64 format not supported!"; in verifyHap()
249 LOGGER.error(errorMsg); in verifyHap()
250 return new VerifyResult(false, VerifyResult.RET_UNSUPPORTED_FORMAT_ERROR, errorMsg); in verifyHap()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/
H A DVerifyHelper.java104 String errorMsg = "Verify failed, not found cert chain"; in certStoreToCertList()
106 ValidateUtils.throwIfMatches(certificates == null, ERROR.VERIFY_ERROR, errorMsg); in certStoreToCertList()
109 ERROR.VERIFY_ERROR, errorMsg); in certStoreToCertList()
120 CustomException.throwException(ERROR.VERIFY_ERROR, errorMsg); in certStoreToCertList()
122 ValidateUtils.throwIfMatches(certificateList.size() == 0, ERROR.VERIFY_ERROR, errorMsg); in certStoreToCertList()
/developtools/profiler/device/services/profiler_service/src/
H A Dtrace_file_writer.cpp441 std::string errorMsg = COMMON::GetErrorMsg(); in LogDiskUsage() local
443 ret, diskPath.c_str(), errorMsg.c_str()); in LogDiskUsage()
/developtools/profiler/device/base/src/
H A Dcommon.cpp622 std::string errorMsg(buffer); in GetErrorMsg()
623 return errorMsg; in GetErrorMsg()
/developtools/packing_tool/adapter/ohos/
H A DCompressor.java1617 String errorMsg = "Compressor:selectHapInApp failed, app has no pack.info."; in selectHapInApp()
1618 LOG.error(errorMsg); in selectHapInApp()
1619 throw new BundleException(errorMsg); in selectHapInApp()
3445 String errorMsg = "versionNormalize failed, module " + versionNormalizeUtil.getModuleName() in verifyModuleVersion()
3447 LOG.error(errorMsg); in verifyModuleVersion()
3448 throw new BundleException(errorMsg); in verifyModuleVersion()

Completed in 15 milliseconds