serr is copied from https://github.com/ngicks/go-common/tree/main/serr
and vendored here as an internal package.