private static string GetMessage(WindowsManagerError error)
        {
            switch (error)
            {
            case WindowsManagerError.FailedToGetUserName:
                return("Failed To Get User Name.");

            case WindowsManagerError.FailedToShutDownSystem:
                return("Failed To Shut Down System.");

            case WindowsManagerError.Unexpected:
            default:
                return("Unexpected Error");
            }
        }
 public WindowsManagerException(WindowsManagerError errorCode, System.Exception innerException = null)
     : base(GetMessage(errorCode), innerException)
 {
     ErrorCode = errorCode;
 }