mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
16 lines
479 B
Plaintext
16 lines
479 B
Plaintext
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
|
|
|