-TEST-1---------------------------------------------------------
Fire normally:
- Test_OnFire 'This is my message of test1'
- Test_OnFireBadHandler 'This is my message of test1'
! Test_OnFireBadHandler made an exception !
The execution of handlers stops after the exception.
-TEST-2---------------------------------------------------------
Fire safely:
- Test_OnFire 'This is my message of test2'
- Test_OnFireBadHandler 'This is my message of test2'
- Test_OnFire 'This is my message of test2'
! Test_OnFireBadHandler made an exception !
The execution of handlers doesn't stops after the exception and the exception is thrown afterwards.
-TEST-3---------------------------------------------------------
Fire safely with internal handling:
- Test_OnFire 'This is my message of test3'
- Test_OnFireBadHandler 'This is my message of test3'
! EventExceptionHandler: ! Test_OnFireBadHandler made an exception !
- Test_OnFire 'This is my message of test3'
The execution of handlers doesn't stops after the exception and each exception is handled by the internal handler.
Press any key