Put the hard-coded error domain name in a #define.

This allows callers to use the name without hard-coding it themselves.
Merge branch 'define-error-domain'