Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Exceptions/BBC-BASIC/exceptions.basic
Normal file
10
Task/Exceptions/BBC-BASIC/exceptions.basic
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
ON ERROR PROCerror(ERR, REPORT$) : END
|
||||
|
||||
ERROR 100, "User-generated exception"
|
||||
END
|
||||
|
||||
DEF PROCerror(er%, rpt$)
|
||||
PRINT "Exception occurred"
|
||||
PRINT "Error number was " ; er%
|
||||
PRINT "Error string was " rpt$
|
||||
ENDPROC
|
||||
Loading…
Add table
Add a link
Reference in a new issue