Missing some reusable error code definitions #222

Open
opened 2025-12-28 18:07:29 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (Apr 2, 2024).

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.

Originally created by @roman-khimov on GitHub (Apr 2, 2024). ## 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-sdk-go#222
No description provided.