Skip to content
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

Add option to customize error message for validating input #863

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

linhaojun857
Copy link
Contributor

@linhaojun857 linhaojun857 commented Sep 22, 2023

fix #733

@linhaojun857
Copy link
Contributor Author

I add a member variable m_errorMessage in class BaseObject::Property::Info that user can customize error message for validating input, for convenience, I add a member variable m_contextPtr in class Caret that program can get user's customize error message and call caret.setErrorMessage to set it when meet ERROR_INVALID_INTEGER

@linhaojun857
Copy link
Contributor Author

@lganzzzo

@linhaojun857
Copy link
Contributor Author

@lganzzzo I have solved the code merge conflict

@lganzzzo
Copy link
Member

Hello @linhaojun857 ,

This PR is postponed due to the new functionality planned - see #879

Please feel free to comment on the proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

customize message for validating input
2 participants