-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling all possible opcua exceptions using freeopcua #1329
Comments
not an issue! |
also if someone comes here the correct syntax is.
this will catch all errors from protocol |
Hi Oroulet , Thanks a lot for your kind support for me as i have been very new to OPC UA protocol usage. If i have to receive all possible exceptions for a client-minimal.py example of free-opcua python , is the below code correct to catch all the possible exceptions occurring mentioned above in my first post to this discussion : 1) BadSessionIdInvalid Is the below code correct for all exceptions mentioned above ?
Thanks Rajnish Vishwakarma |
If you are excepting Since stuff can change, you can't guarantee that just those 4 will occur. |
And I guess you are aware of #1475 ?! |
Thanks @swamper123 for your reply. yes agreed . Could you pls let me know whether the below code for handling all possible exceptions is correct for a Code is as follows : **Is the below code correct for handling all exceptions in client-minimal.py example mentioned in the freeo-pcua python example list ** ?
Thanks Rajnish Vishwakarma |
The code you are posting seems to handle I can't say if this list is uptodate, since this library is deprecated and not sure if even the nodeset from asyncua is uptodate atm. |
Hi team ,
I want to handle the below exceptions using python opcua exceptions like below .
1) BadSessionIdInvalid
2) BadSessionNotActivated
3)BadTooManyOperations
4) BadSessionIdInvalid
suppose i get the exceptions as :
a) opcua.ua.uaerrors._auto.BadTooManyOperations: The request could not be processed because it specified too many operations.(BadTooManyOperations)
AND
b) opcua.ua.uaerrors._auto.BadSessionIdInvalid: The session id is not valid.(BadSessionIdInvalid)
Need help for the handling the exceptions . Request anyone to help with your replies for below questions.
It will be great help of me if any one can assist the same .
Rajnish Vishwakarma
The text was updated successfully, but these errors were encountered: