Skip to content

model.datatypes: Improve BCE date error message#578

Merged
s-heppner merged 2 commits into
eclipse-basyx:developfrom
rwth-iat:improve/bce-dates-error-message
Jun 19, 2026
Merged

model.datatypes: Improve BCE date error message#578
s-heppner merged 2 commits into
eclipse-basyx:developfrom
rwth-iat:improve/bce-dates-error-message

Conversation

@JAB1305

@JAB1305 JAB1305 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #565

Previously _parse_xsd_date() and _parse_xsd_datetime() raised ValueError("Negative Dates are not supported by Python") when given an XSD value with a leading - (BCE year). This was technically false as input is not malformed, only not supported.

This change raises NotImplementedError instead, allowing callers to distinguish "invalid input" from "known SDK limitation.". Additionally pointing users to https://github.com/eclipse-basyx/basyx-python-sdk/issues to report the lack of implementation.

JAB1305 added 2 commits June 17, 2026 13:53
Previously `_parse_xsd_date()` and `_parse_xsd_datetime()` raised `ValueError("Negative Dates are not supported by Python")` when given an XSD value with a leading `-` (BCE year). This was technically false as input is not malformed, only not supported.

This change raises `NotImplementedError` instead, allowing callers to distinguish "invalid input" from "known SDK limitation.". Additionally pointing users to https://github.com/eclipse-basyx/basyx-python-sdk/issues to report the lack of implementation.
Bump copyright year to 2026
@s-heppner s-heppner merged commit c9eea68 into eclipse-basyx:develop Jun 19, 2026
13 checks passed
@s-heppner s-heppner deleted the improve/bce-dates-error-message branch June 19, 2026 12:17
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.

2 participants