Exceptions: Difference between revisions

Content added Content deleted
(Added Oz example.)
(→‎Throwing Exceptions: {{Lines_too_long}})
Line 970: Line 970:


===Throwing Exceptions===
===Throwing Exceptions===
{{Lines_too_long}}
<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>
<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>