September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
30
Task/Exceptions/Gambas/exceptions.gambas
Normal file
30
Task/Exceptions/Gambas/exceptions.gambas
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
Public Sub Main()
|
||||
Dim iInteger As Integer
|
||||
|
||||
MakeError
|
||||
DivError
|
||||
|
||||
iInteger = "2.54"
|
||||
|
||||
Catch
|
||||
Print Error.Text
|
||||
|
||||
End
|
||||
'______________________
|
||||
Public Sub DivError()
|
||||
|
||||
Print 10 / 0
|
||||
|
||||
Catch
|
||||
Print Error.Text
|
||||
|
||||
End
|
||||
'______________________
|
||||
Public Sub MakeError()
|
||||
|
||||
Error.Raise("My Error")
|
||||
|
||||
Catch
|
||||
Print Error.Text
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue