Exception handling syntax: Difference between revisions

Content deleted Content added
m S-Lang: WP:LINK update-standardize.
m S-Lang: WP:LINK update-standardize. Mea culpa: did not search both strings in last edit.
Line 984:
New exceptions may be created using the {{S-Lang|new_exception}} function, e.g.,
new_exception ("MyIOError", IOError, "My I/O Error");
will create an exception called {{S-Lang|MyIOError}} as a subclass of {{S-Lang|IOError}}. Exceptions may be generated using the throw statement, which can throw arbitrary [[S-Lang (programming language)|S-Lang]] objects.
 
=== Smalltalk ===