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