[builder] migrate builder exceptions to separate module
The builder exceptions should be shared between different implementations of the
builder interface. This patch migrates them to a separate module
dune.generator.exceptions
. For convenience they are also imported into
dune.generator
itself.