catch getNetInterfaceConfig

This commit is contained in:
Doug MacEachern 2005-07-21 00:23:47 +00:00
parent bad3fb89fc
commit a3e6120bc7
1 changed files with 5 additions and 1 deletions

View File

@ -57,7 +57,11 @@ public class Ifconfig extends SigarCommandBase {
} }
for (int i=0; i<ifNames.length; i++) { for (int i=0; i<ifNames.length; i++) {
try {
output(ifNames[i]); output(ifNames[i]);
} catch (SigarException e) {
println(ifNames[i] + "\t" + e.getMessage());
}
} }
} }