Exceptions: Difference between revisions
Content added Content deleted
(added slate language) |
|||
Line 862: | Line 862: | ||
=={{header|Slate}}== |
=={{header|Slate}}== |
||
===Handling Exceptions=== |
|||
<lang slate> |
<lang slate> |
||
Line 872: | Line 872: | ||
</lang> |
</lang> |
||
===Define Exceptions=== |
|||
<lang slate> |
<lang slate> |
||
Line 896: | Line 896: | ||
</lang> |
</lang> |
||
===Throwing Exceptions=== |
|||
<lang slate> |
<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.']. |
(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> |
</lang> |
||
=={{header|Standard ML}}== |
=={{header|Standard ML}}== |