pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Config_error does not support adding additional context #480

Open jbigot opened 2 weeks ago

jbigot commented 2 weeks ago

Very often, the context for a configuration error can only be provided higher in the call stack. In this case, one would like to add information to the Config_error exception. For example:

try {
} catch (Config_error& err) {
    throw Config_error{/**/, "Some more info"};
}

Unfortunately, the current implementation doesn't make it possible to extract the line & column of the error from the exception so this is not possible.

benoitmartin88 commented 6 days ago

update deisa plugin when this issue is fixed.