PyDSL exception handling

Re-raise rendering errors as our own exception class.
Merge pull request #12894 from cachedout/pydsl_exc

PyDSL exception handling