From 9c866c13696356ee9abc07aa28e6212bc8e75e53 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 18 Aug 2004 16:05:07 +0000 Subject: [PATCH] getUserDeniedMessage wrapper --- bindings/java/src/net/hyperic/sigar/cmd/Shell.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Shell.java b/bindings/java/src/net/hyperic/sigar/cmd/Shell.java index 3acaa7c8..5f423eba 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Shell.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Shell.java @@ -7,6 +7,7 @@ import java.util.ArrayList; import net.hyperic.sigar.Sigar; import net.hyperic.sigar.SigarException; +import net.hyperic.sigar.SigarPermissionDeniedException; import net.hyperic.sigar.SigarLoader; import net.hyperic.sigar.SigarProxy; import net.hyperic.sigar.SigarProxyCache; @@ -140,6 +141,12 @@ public class Shell extends ShellBase { } catch (IOException e) { } } + public String getUserDeniedMessage(long pid) { + return + SigarPermissionDeniedException.getUserDeniedMessage(this.proxy, + pid); + } + public static void main(String[] args) { Shell shell = new Shell();