Menu

#3 Use class-based exceptions

v2.0a2
open
5
2001-10-10
2001-10-10
No

Use class-based exceptions instead of the string
constants currently in use.

Define a decent hierarchy, don't do it haphazard like.
Perhaps:

EwgLibException(Exception)
NetworkingException(EwgLibException)
BrowsingException(NetworkingException)
SimpleSocketException(NetworkingException)
...
AppFrameworkException(EwgLibException)
...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.