v0.0.251 exerr.WithStackSkip
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m9s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m9s
This commit is contained in:
parent
a75b1291cb
commit
b5ca475b3f
@ -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)
|
// Err changes the Severity to ERROR (default)
|
||||||
// The error will be:
|
// The error will be:
|
||||||
//
|
//
|
||||||
|
@ -207,7 +207,7 @@ func Error(e error) HTTPResponse {
|
|||||||
|
|
||||||
func ErrWrap(e error, errorType exerr.ErrorType, msg string) HTTPResponse {
|
func ErrWrap(e error, errorType exerr.ErrorType, msg string) HTTPResponse {
|
||||||
return &jsonAPIErrResponse{
|
return &jsonAPIErrResponse{
|
||||||
err: exerr.FromError(exerr.Wrap(e, msg).WithType(errorType).Build()),
|
err: exerr.FromError(exerr.Wrap(e, msg).WithStackSkip(2).WithType(errorType).Build()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.250"
|
const GoextVersion = "0.0.251"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-08-21T15:34:26+0200"
|
const GoextVersionTimestamp = "2023-08-22T10:21:13+0200"
|
||||||
|
Loading…
Reference in New Issue
Block a user