首页 > 代码库 > string to integer with logerror

string to integer with logerror

public Integer convertStringToInt(String pSource) {
try {
return Integer.valueOf(FergusonStringUtils.trim(pSource));
} catch (NumberFormatException e) {
// TODO: handle exception
vlogError("convertStringToInt() : the String {0} cann‘t be converted to integer", pSource);
return 0;
}
}

string to integer with logerror