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

Implement DeclareError|DeclareWarning statements #68

Closed
lisachenko opened this issue Jul 2, 2013 · 0 comments
Closed

Implement DeclareError|DeclareWarning statements #68

lisachenko opened this issue Jul 2, 2013 · 0 comments
Labels
Milestone

Comments

@lisachenko
Copy link
Member

An aspect may specify that a particular join point should never be reached.

/**
 * @DeclareError(Pointcut)
 */
protected static $errorMessage = 'This is an error message';

/**
 * @DeclareWarning(Pointcut)
 */
protected static $warningMessage = 'This is a warning message';

If the compiler determines that a join point in Pointcut could possibly be reached, then it will signal either an error or warning, as declared, using the string for its message.

The general form of the statement is this: "Declare it to be a runtime warning/error, if any join point matching the following pointcut expression occurs, and this is the warning message I'd like you to use."

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

No branches or pull requests

1 participant