Instead of making multiple exception creating a struct struct error_info { ERR_TYPE err_type; const char msg; void const private_data; }; In this user can distinguish based on err_type. This will avoid creating multiple exceptions.
Instead of making multiple exception creating a struct
struct error_info
{
ERR_TYPE err_type;
const char msg;
void const private_data;
};
In this user can distinguish based on err_type. This will avoid creating multiple exceptions.