feat: add overflow err

This commit is contained in:
Gaze
2024-04-16 00:46:31 +07:00
parent 846aadc131
commit 991f91f469

View File

@@ -70,6 +70,12 @@ var (
// so errors.Is(err, InternalError) == true
Overflow = errors.WrapWithDepth(depth, InternalError, "overflow")
// OverflowUint64 is returned when an uint64 overflow error occurs
//
// inherited error from Overflow,
// so errors.Is(err, Overflow) == true
OverflowUint32 = errors.WrapWithDepth(depth, Overflow, "overflow uint32")
// OverflowUint64 is returned when an uint64 overflow error occurs
//
// inherited error from Overflow,