Ensure all built-in error types are defined in global scope, and
documenting them.