nspcc-dev / neofs-sdk-go

Go implementation of NeoFS SDK
Apache License 2.0
5 stars 14 forks source link

Missing some reusable error code definitions #574

Open roman-khimov opened 3 months ago

roman-khimov commented 3 months ago

Current Behavior

Code like https://github.com/nspcc-dev/neofs-node/pull/2674/commits/6938955c72580379d4f60fcf2b2a49fd06eaaa22#r1540006096 to get error constants.

Expected Behavior

Have some real error codes defined in constants, no one cares about sections, so it should be const ErrorCode = 1025 and not const Section = 1024; const ErrorCode = 1

Context

Blocked by #551.