Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Exceptions/PureBasic/exceptions.basic
Normal file
9
Task/Exceptions/PureBasic/exceptions.basic
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Procedure ErrorHandler()
|
||||
MessageRequester("Exception test", "The following error happened: " + ErrorMessage())
|
||||
EndProcedure
|
||||
|
||||
MessageRequester("Exception test", "Test start")
|
||||
|
||||
OnErrorCall(@ErrorHandler())
|
||||
|
||||
RaiseError(#PB_OnError_InvalidMemory) ;a custom error# can also be used here depending on the OS being compiled for
|
||||
Loading…
Add table
Add a link
Reference in a new issue