Abstract DSL builder for Error classes.
Builds an E class instance with the configured parameters.
Sets the error code.
Sets the additional error data.
Sets the error message.