TU-ADSP / Blockchain-Logging-Framework

This framework provides advanced querying and logging capabilities for Ethereum and Hyperledger blockchains.
Other
7 stars 5 forks source link

#56 - globalize exception handling #163

Closed mykola-digtiar closed 3 years ago

mykola-digtiar commented 3 years ago

Closes #56.

The ProgramException throws were replaced with calls of ExceptionHandler.handleException method. The only problem is that the ExceptionHandler object is not Singleton and therefore the exitOnException condition will only work for exceptions handled by the ExceptionHandler object that is stored in ProgramState.

Because there are no exceptions thrown, additional return statements and logic were introduced to make sure that the program will run with exceptions until the end.

Tests seem to be fine.

mykola-digtiar commented 3 years ago

Seems like new tests do not pass anymore, will try to investigate.

PaulsBecks commented 3 years ago

Good job @Neckster, huge amount of code you had to change here. 👍