Similar to block, but C++ exceptions will be caught and rethrown as ForeignExceptions.
Unlike block, the return type can only be void (and doesn't need to be specified), but you can use withPtr_ to extract a result yourself.
Using this will automatically include exception, cstring and cstdlib.