support for custom errors

tests are green.

Unsure wether to keep this as a separate YML file or if you'd rather have it be appended to the general DB connection config YML, can see benefits on both.

Thoughts @mnelson @evantahler ?