wazuh / qa-system-framework

GNU General Public License v2.0
1 stars 3 forks source link

Add generic module to handle custom exceptions #3

Closed jmv74211 closed 1 year ago

jmv74211 commented 1 year ago

It is requested to create a module that allows us to throw custom exceptions in the QA framework.

jmv74211 commented 1 year ago

Module design

I'm going to create a generic exception class called QAFrameworkException. This class will inherit from Exception and will add some extra functionality, which is as follows:

Once the QAFrameworkException is designed, we can define other subclasses to identify the exception according to a type and give the possibility to treat them differently.

The initially proposed subclasses are as follows: