GNU Smalltalk: Difference between revisions

Content added Content deleted
No edit summary
m (→‎Exceptions: fix broken tags)
Line 153: Line 153:
self error: 'This is a message'
self error: 'This is a message'


These are actually wrappers for the actual exception raising method, <tt>signal>:
These are actually wrappers for the actual exception raising method, <tt>signal</tt>:


Error signal
Error signal
Error signal: 'Illegal arguments!'
Error signal: 'Illegal arguments!'


Exceptions are handled by <code>on:do:</tt> blocks.
Exceptions are handled by <code>on:do:</code> blocks.


[ something to do ]
[ something to do ]