NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2311

'exception' : is caught by '...' on line number

The catch handler for the ellipsis (...) must be the last handler for a throw.

Example

#include <eh.h>
//...
void main()
{
    try
    {
        throw "ooops!";
    }
    catch( ... ) {}  // ellipsis handler is not last catch for this throw
    catch( int ) {}
}