Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(ocpp): transmit error message instead of description #870

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

a-w50
Copy link
Contributor

@a-w50 a-w50 commented Sep 19, 2024

Describe your changes

  • previously the transmitted error info inside OCPPs StatusNotification message contained the error description of a VendorError, that was raised within everest -- now it contains the error message
  • this should be more appropriate, as the error description is fixed (static), whereas the message can be specified at runtime
  • note, that the difference between an error description and an error message is definitely not self-explanatory and probably lead to this behaviour (this should be fixed in the error api)
  • when using this, keep in mind, that OCPPs info property within the StatusNotification message can only contain up to 50 characters -- if the error message is longer, it will get truncated

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

- previously the transmitted error info inside OCPPs StatusNotification
  message contained the error description of a `VendorError`, that was
  raised within everest -- now it contains the error message
- this should be more appropriate, as the error description is fixed
  (static), whereas the message can be specified at runtime
- note, that the difference between an error description and an error
  message is definitely not self-explanatory and probably lead to this
  behaviour (this should be fixed in the error api)
- when using this, keep in mind, that OCPPs `info` property within the
  StatusNotification message can only contain up to 50 characters -- if
  the error message is longer, it will get truncated

Signed-off-by: aw <[email protected]>
@a-w50 a-w50 merged commit 0be3787 into main Sep 20, 2024
10 checks passed
@a-w50 a-w50 deleted the feature/transmit_error_message branch September 20, 2024 09:51
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