Implement functionality to create a new error object by formatting the error message string using the [{fmt}](https://github.com/fmtlib/fmt) library.