Migrate 2.0.0 errors to daw_error/v1 #43
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-lua-common#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Migrate
daw-lua-common2.0.0 from string errors to the structureddaw_error/v1return contract before public release.Session rationale
The session explicitly decided to break the still-private 2.0.0 once more now, because only
daw-lua-commonanddaw-lua-nethave already been moved to 2.0.0. Doing the structured-error migration now avoids repeating the same breaking migration across roughly forty later modules.Scope
daw_error/v1objects.result, nilornil, err; predicate functions retain their legitimatefalse, nilresult where applicable.daw_error/v1, including stable machine-readablecode,source, technicalmessage, and unique error identity.daw_error/v1objects.daw_error/v1.[ERROR] ...prefixes from returned errors; textual rendering belongs to the formatter/UI layer.Acceptance criteria
nil, <valid daw_error/v1 object>rather than a formatted error string.causevalues are complete validdaw_error/v1objects and cannot form cycles.make testpasses on the Lua versions currently supported by the repository.Cross-repository context
The normative contract is maintained in
DAW/daw-contracts.daw-lua-netmust be migrated to the same error contract so both 2.0.0 common libraries expose a consistent API.