Menu

#111 Enhance WrapperServiceException with error code

Next_Release
closed
API (9)
5
2008-10-23
2008-10-23
Bob Posert
No

The exception class WrapperServiceException contains the text of a service control error as retrieved by GetLastErrorText. The text has the last error code in hex at the end (see the implementation of GetLastErrorText at http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn/service-win32/service.c\). In my project, I need to take different action depending on the error code, so I have to parse out the error code. The specific changes I would like to see are:
1. Add an int field "errorCode" to WrapperServiceException.
2. Populate this field with the result of calling GetLastError().

Thanks,
Bob

Discussion

  • Leif Mortenson

    Leif Mortenson - 2008-10-23

    Bob,
    Thank you for your suggestion. This was fairly easy to implement. It has been added and will be in the upcoming 3.3.2 release.

    Cheers,
    Leif

     
  • Leif Mortenson

    Leif Mortenson - 2008-10-23
    • milestone: --> Next_Release
    • assigned_to: nobody --> mortenson
    • status: open --> closed
     
  • Bob Posert

    Bob Posert - 2008-10-23

    That was *fast* !!!
    Thanks!

     

Log in to post a comment.