Exceptions: Difference between revisions

(added slate language)
Line 862:
=={{header|Slate}}==
 
===Handling Exceptions===
 
<lang slate>
Line 872:
</lang>
 
===Define Exceptions===
 
<lang slate>
Line 896:
</lang>
 
===Throwing Exceptions===
<lang slate>
(fileName endsWith: '.image') ifTrue: [error: 'Image filename specified where Slate source expected. Make sure you run slate with the -i flag to specify an image.'].
 
</lang>
 
 
=={{header|Standard ML}}==
Anonymous user