<p>Is there a c++ equivalent of Java's</p>

<pre><code>try {
    ...
}
catch (Throwable t) {
    ...
}
</code></pre>

<p>I am trying to debug Java/jni code that calls native windows functions and the virtual machine keeps crashing.  The native code appears fine in unit testing and only seems to crash when called through jni.  A generic exception catching mechanism would prove extremely useful.</p>

```
```
try {
   // ...
} catch (...) {
   // ...
}
```
```
Note that the
```
...
```
inside the
```
catch
```
is a real ellipsis, ie. three dots.
However, because C++ exceptions are not necessarily subclasses of a base
```
Exception
```
class, there isn't any way to actually see the exception variable that is thrown when using this construct.