"Alex" == Alex Chi alex_chi99@yahoo.com writes:
Alex> Thanks a lot for all the information. Alex> 1 more question, after create a new exception class then to use it let's say I have to define something like: Alex> Then use it:
Alex> [SpontaneousCombustionException signal] Alex> on: SpontaneousCombustionException Alex> do: [:ex | Transcript show: 'Explosion detected'; cr]
No, you write:
[some code. that might. explode here: youKnow. andMore stuff. ] on: SpontaneousCombustionException do: [:ex | Transcript show: 'Explosion detected'; cr].
And then if any of the code you call in that first block throws a SpontaneousCombustionException, you get into your second block.