Create a version of Error that can be converted to ILoggable
N.B.: The name of the error comes from the error.constructor.name as that is the name of the custome error class.
If custom error doesn't set the .name to .constructor.name, the error.name would always be Error
Create a version of Error that can be converted to ILoggable
N.B.: The name of the error comes from the error.constructor.name as that is the name of the custome error class. If custom error doesn't set the .name to .constructor.name, the error.name would always be
Error