Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Exceptions/M2000-Interpreter/exceptions.m2000
Normal file
22
Task/Exceptions/M2000-Interpreter/exceptions.m2000
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Module Errors {
|
||||
Module Check {
|
||||
Module Error1 {
|
||||
A=1/0
|
||||
}
|
||||
|
||||
Try ok {
|
||||
Error1
|
||||
}
|
||||
' we get an Error, and Error$ print division by zero in module Error1
|
||||
If Error or not ok then Print Error$
|
||||
Error "New Error"
|
||||
}
|
||||
Try {
|
||||
Check
|
||||
}
|
||||
Print Error=0 ' no Error return
|
||||
Print Error$ ' but Error message isn't clear
|
||||
' Error$ used one time, then cleared automatic
|
||||
}
|
||||
Errors
|
||||
Print Error$=""
|
||||
Loading…
Add table
Add a link
Reference in a new issue