![]() |
In a few cases I found myself needing to signal an exception, but perhaps not a fatal error. To solve this, I coded a raiseError: method where you supply a symbol as reference data. In various places I raised errors. Later we revisited situations like the one above, and decided what could be handled, versus using the symbol to log more information and abort the session
In my opinion, using exception handlers is more difficult. From a maintenance perspective, it's an 'advanced topic' for junior Smalltalkers to grasp.
But that doesn't preclude its usage for advanced programmers.