diff options
Diffstat (limited to 'avahi-sharp/ClientException.cs')
-rw-r--r-- | avahi-sharp/ClientException.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/avahi-sharp/ClientException.cs b/avahi-sharp/ClientException.cs index 11c4e63..fadcce9 100644 --- a/avahi-sharp/ClientException.cs +++ b/avahi-sharp/ClientException.cs @@ -79,7 +79,22 @@ namespace Avahi NotPermitted = -50 } - public delegate void ErrorCodeHandler (object o, ErrorCode code); + public delegate void ErrorCodeHandler (object o, ErrorCodeArgs args); + + public class ErrorCodeArgs : EventArgs + { + private ErrorCode code; + + public ErrorCode ErrorCode + { + get { return code; } + } + + public ErrorCodeArgs (ErrorCode code) + { + this.code = code; + } + } public class ClientException : ApplicationException { |