mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-30 20:52:01 +08:00
feat: add overflow err
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user