v0.0.251 exerr.WithStackSkip
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m9s

This commit is contained in:
2023-08-22 10:21:13 +02:00
parent a75b1291cb
commit b5ca475b3f
3 changed files with 10 additions and 3 deletions

View File

@@ -112,6 +112,13 @@ func (b *Builder) WithMessage(msg string) *Builder {
// ----------------------------------------------------------------------------
func (b *Builder) WithStackSkip(stacktraceskip int) *Builder {
b.errorData.Caller = callername(stacktraceskip)
return b
}
// ----------------------------------------------------------------------------
// Err changes the Severity to ERROR (default)
// The error will be:
//