RosettaCodeData/Task/Flow-control-structures/PureBasic/flow-control-structures-4.purebasic

12 lines
190 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
OnErrorGoto(?MyExitHandler)
X=1: Y=0
z= X/Y
; = a illegal division with zero
Debug "This line should never be reached"
End
MyExitHandler:
MessageRequester("Error", ErrorMessage())
End