3 using System.Runtime.InteropServices;
7 public class ClientException : ApplicationException
11 [DllImport ("avahi-common")]
12 private static extern IntPtr avahi_strerror (int code);
19 internal ClientException (int code) : base (GetErrorString (code))
24 private static string GetErrorString (int code)
26 IntPtr str = avahi_strerror (code);
27 return Utility.PtrToString (str);