Is it possible to get a message on a failed login, such as
- license limit has been reached
- Vault database not found
- username and password not found
PS I am using the WebServiceManager in Vault Professional 2013.
Solved! Go to Solution.
If something goes wrong with the login, you will get an exception when creating the WebServiceManager object. Errors from the Vault server will have an error code.
If you want a human readable message, you will have to convert the error code to a human readable string. You can provide you own messages or copy them from the SDK documentation.
So for login errors, am I on the right path with something like:
server, vault, username, password, true));
catch (Exception ex)
GetErrorAndRestrictionCodesString(ex, out errorCode, out restrictionCodes);
Yes, that should work. You can test it out pretty easliy. Just log in with a bad password.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.