System.IO.BACnet.BacnetClient.ProcessError C# (CSharp) Method

ProcessError() protected method

protected ProcessError ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
service BacnetConfirmedServices
invoke_id byte
buffer byte
offset int
length int
return void
        protected void ProcessError(BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte[] buffer, int offset, int length)
        {
            try
            {
                Trace.WriteLine("Error", null);

                BacnetErrorClasses error_class;
                BacnetErrorCodes error_code;
                if (Services.DecodeError(buffer, offset, length, out error_class, out error_code) < 0)
                    Trace.TraceWarning("Couldn't decode Error");

                if (OnError != null) OnError(this, adr, type, service, invoke_id, error_class, error_code, buffer, offset, length);
            }
            catch (Exception ex)
            {
                Trace.TraceError("Error in ProcessError: " + ex.Message);
            }
        }
BacnetClient