This forum has been archived. Please start a new discussion on GitHub.

IceSSL error handling

I'm wrapping Ice in an internal module in our application. What's the best way to programmatically get more information about why an SSL connection failed? As far as I can tell, IceSSL just throws a generic ProtocolException, but I'd like to get more information out so I can code logic against it, such as SelfSignedCertificateException or InvalidCAException.

Is this possible?


  • mes
    mes California

    I'm afraid that's not currently possible. As you've seen, IceSSL doesn't throw detailed exceptions that would allow you to distinguish between all of the various error conditions that could arise. This is partly due to a lack of information and consistency across platforms from the low-level SSL implementations.