diff --git a/exerr/helper.go b/exerr/helper.go index 3f3132d..8a7d11e 100644 --- a/exerr/helper.go +++ b/exerr/helper.go @@ -111,3 +111,16 @@ func OriginalError(e error) error { return bmerr } + +func UniqueID(v error) *string { + if v == nil { + return nil + } + + //goland:noinspection GoTypeAssertionOnErrors + if verr, ok := v.(*ExErr); ok { + return &verr.UniqueID + } + + return nil +} diff --git a/goextVersion.go b/goextVersion.go index 438e234..494122c 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.527" +const GoextVersion = "0.0.528" -const GoextVersionTimestamp = "2024-10-07T17:19:30+0200" +const GoextVersionTimestamp = "2024-10-07T17:20:40+0200"