private static string GetErrorMessage(ApplicationHandlerExceptionType type)
        {
            string message = string.Empty;

            switch (type)
            {
            case ApplicationHandlerExceptionType.CANNOT_FIND_APPLICATION:
                message = "Cannot find application window, please check application window is opened.";
                break;

            default:
                message = "This exception is not expected.";
                break;
            }
            return(message);
        }
 public ApplicationHandlerException(ApplicationHandlerExceptionType type)
     : base(GetErrorMessage(type))
 {
     ErrorType = type;
 }