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

[#1666] RFC: add support for optional custom error message for Configuration Validation Errors #2

Conversation

cordoval
Copy link
Contributor

RFC:

Basically this is the start, but i wanted to ask which one of these options is better:

  1. extend/override the base Exception class to include the custom error message
    this requires a modification of the throw specific expection passing Exception($this) meaning it is getting
    the current node or the node from which the exception is being thrown
  2. propagate the changes in every class that throws exception similar than this PR
    this would require changes in every particular class

Please vote whether 1 or 2 is more fit

Thanks to all symfony2 community :D

@cordoval cordoval closed this Jul 28, 2012
@cordoval
Copy link
Contributor Author

already PRed the main symfony/symfony sorry :D

symfony/symfony#5094

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