Add support for formatting the `Error` struct using the [{fmt}](https://fmt.dev/latest/index.html) library. Please refer to the [documentation](https://fmt.dev/latest/api.html#udt) for more details.