IceSSL error handling

dreijerdreijer Soren DreijerOrganization: EchobitProject: Evolve, a social platform for gamersMember
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?

Comments

  • mesmes CaliforniaMark SpruiellOrganization: ZeroC, Inc.Project: Ice DeveloperAdministrators, ZeroC Staff ZeroC Staff
    Hi,

    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.

    Regards,
    Mark
Sign In or Register to comment.