Jump to content
Fr0sT.Brutal

Proper way of reporting errors?

Recommended Posts

I have TWSocket descendant implementing SChannel connection and currently all TLS-related problems raise an exception (that is, exception is raised by utility functions, I just do nothing special in socket). I wonder if that's the correct way of reporting errors in ICS. I looked at the code of OverbyteIcsWSocket.pas and found some `SocketError` uses, some `RaiseException`, some `raise ESocketException` and some `TriggerXXX(Error)` / `SetLastError`.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×