Is it possible to seperate security messages?
It seems RestrictedPython uses existing exception types to report a security error.
I have found in compile.py
if result.errors:
raise SyntaxError(result.errors)`
When I replace SyntaxError to my new exception type it will solve the problem? Or how could I do that?