错误日志修正
This commit is contained in:
@@ -398,11 +398,11 @@ public class SNMP4JUtils {
|
||||
for (int j = 0; j < list.size(); j++) {
|
||||
TreeEvent treeEvent = (TreeEvent)list.get(j);
|
||||
if (treeEvent.isError())
|
||||
throw new Exception((new StringBuilder("i18n_server.SNMP4JUtils.Exception3_n81i:")).append(treeEvent.getErrorMessage()).toString());
|
||||
throw new Exception((new StringBuilder("Error getting SNMP table:")).append(treeEvent.getErrorMessage()).toString());
|
||||
if (treeEvent.getException() != null)
|
||||
throw new Exception((new StringBuilder("i18n_server.SNMP4JUtils.Exception4_n81i:")).append(treeEvent.getErrorMessage()).append(" ").append(treeEvent.getException().getMessage()).toString());
|
||||
throw new Exception((new StringBuilder("Get an exception in SNMP table:")).append(treeEvent.getErrorMessage()).append(" ").append(treeEvent.getException().getMessage()).toString());
|
||||
if (treeEvent.getStatus() != 0)
|
||||
throw new Exception((new StringBuilder("i18n_server.SNMP4JUtils.Exception3_n81i:")).append(treeEvent.getErrorMessage()).toString());
|
||||
throw new Exception((new StringBuilder("Error getting SNMP table:")).append(treeEvent.getErrorMessage()).toString());
|
||||
if (treeEvent.getVariableBindings() != null ){
|
||||
VariableBinding vbArr[] = treeEvent.getVariableBindings();
|
||||
if(vbArr != null){
|
||||
@@ -457,11 +457,11 @@ public class SNMP4JUtils {
|
||||
for (int j = 0; j < list.size(); j++) {
|
||||
TreeEvent treeEvent = (TreeEvent)list.get(j);
|
||||
if (treeEvent.isError())
|
||||
throw new Exception((new StringBuilder("i18n_server.SNMP4JUtils.Exception3_n81i:")).append(treeEvent.getErrorMessage()).toString());
|
||||
throw new Exception((new StringBuilder("Error getting SNMP table:")).append(treeEvent.getErrorMessage()).toString());
|
||||
if (treeEvent.getException() != null)
|
||||
throw new Exception((new StringBuilder("i18n_server.SNMP4JUtils.Exception4_n81i:")).append(treeEvent.getErrorMessage()).append(" ").append(treeEvent.getException().getMessage()).toString());
|
||||
throw new Exception((new StringBuilder("Get an exception in SNMP table:")).append(treeEvent.getErrorMessage()).append(" ").append(treeEvent.getException().getMessage()).toString());
|
||||
if (treeEvent.getStatus() != 0)
|
||||
throw new Exception((new StringBuilder("i18n_server.SNMP4JUtils.Exception3_n81i:")).append(treeEvent.getErrorMessage()).toString());
|
||||
throw new Exception((new StringBuilder("Error getting SNMP table:")).append(treeEvent.getErrorMessage()).toString());
|
||||
if (treeEvent.getVariableBindings() != null ){
|
||||
VariableBinding vbArr[] = treeEvent.getVariableBindings();
|
||||
if(vbArr != null){
|
||||
|
||||
Reference in New Issue
Block a user