Add support for user defined exception translators

This commit is contained in:
Pim Schellart
2016-06-17 17:35:59 -04:00
parent 678d59d21f
commit 5a7d17ff16
9 changed files with 302 additions and 12 deletions

15
example/example19.ref Normal file
View File

@@ -0,0 +1,15 @@
Can we catch a MyException?
MyException : this error should go to a custom type
Can we translate to standard Python exceptions?
RuntimeError : this error should go to a standard Python exception
Can we handle unknown exceptions?
RuntimeError : Caught an unknown exception!
Can we delegate to another handler by rethrowing?
MyException : this error is rethrown
Can we fall-through to the default handler?
RuntimeError : this error should fall through to the standard handler