mirror of https://github.com/pybind/pybind11
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
479 B
15 lines
479 B
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 |
|
|
|
|