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;
}
}

posted @ 2017-01-24 16:53  weberLi  阅读(102)  评论(0编辑  收藏  举报