Closed JamesKrub closed 3 weeks ago
Using errors.As:
var t gozxing.NotFoundException
if errors.As(err, t) {
fmt.Println("Not found exception")
}
Or, using type assertion:
_, ok := err.(gozxing.NotFoundException)
if ok {
fmt.Println("Not found exception")
}
please kindly recommend me to check specific error without using like this in Golang
err.Error() == "NotFoundException: startSize = 0"