Create an error module for custom error types.