Genesys CTI User Forum > Genesys-related Development
Suscribe to Error method
cavagnaro:
Hi,
Using .Net 8.1 PSDK
I want to be able to receive errors from the Protocol to I can handle them in a more custom way.
Right now i do:
[Code]
try{
protocol.Open();
}catch(Exception ex){
Console.Write(ex.Message);
}
[/code]
But for a end user is not exactly a friendly message. Therefore would like to manage it.
If I do:
[Code]
protocol.Error += protocol_Error;
[/code]
Then on the function protocol_Error I receive nothing or is never invoked
Doing protocol.Received it does work...what is the difference or how to use the Error?
Thanks
Kubig:
I think that Error handler on connectionprotocl fired only error related to self connection, but not the error that are receiving.
cavagnaro:
??? Don't understand what you mean Kubig
Kubig:
You tried to catch errors on hanlder which is not for these purposes, protocol.Error handler provides only error about connection to the server, not errors from the server
cavagnaro:
Ermmm...
Yes, for example. I have no network connection to the server. So I do the OPEN and returns "Can't open channel" from the try:catch but doesn't it also be notified to the Error handler?
Navigation
[0] Message Index
[#] Next page
Go to full version