Skip to content

Cleanup the DecodeError type - #173

Merged
hchataing merged 1 commit into
mainfrom
runtime-error-codes
Apr 3, 2026
Merged

Cleanup the DecodeError type#173
hchataing merged 1 commit into
mainfrom
runtime-error-codes

Conversation

@hchataing

Copy link
Copy Markdown
Collaborator

Remove obsolete error cases:

  • ConstraintOutOfBounds
  • InvalidChildError
  • ImpossibleStructError

Rename error cases with homogenous naming:

  • InvalidPacketError -> UnwrapError
  • InvalidFixValue -> FixedValueError
  • InvalidLengthError -> LengthError
  • InvalidEnumValueError -> EnumValueError
  • InvalidFieldValue -> ConstraintValueError
  • InvalidArraySize -> ArraySizeError
  • TrailingBytes -> TrailingBytesError

Remove obsolete error cases:

- ConstraintOutOfBounds
- InvalidChildError
- ImpossibleStructError

Rename error cases with homogenous naming:

- InvalidPacketError -> UnwrapError
- InvalidFixValue -> FixedValueError
- InvalidLengthError -> LengthError
- InvalidEnumValueError -> EnumValueError
- InvalidFieldValue -> ConstraintValueError
- InvalidArraySize -> ArraySizeError
- TrailingBytes -> TrailingBytesError
@hchataing
hchataing merged commit 679d7e7 into main Apr 3, 2026
10 checks passed
@hchataing
hchataing deleted the runtime-error-codes branch April 3, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant