Skip to content

feat: add SerialWriteError to errors in samps module#4

Merged
michealroberts merged 1 commit intomainfrom
feature/errors/SerialWriteError
May 6, 2025
Merged

feat: add SerialWriteError to errors in samps module#4
michealroberts merged 1 commit intomainfrom
feature/errors/SerialWriteError

Conversation

@michealroberts
Copy link
Owner

feat: add SerialWriteError to errors in samps module

feat: add SerialWriteError to errors in samps module
@michealroberts michealroberts added the enhancement New feature or request label May 6, 2025
@michealroberts michealroberts requested a review from Copilot May 6, 2025 11:46
@michealroberts michealroberts self-assigned this May 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new error class, SerialWriteError, into the samps module and adds corresponding tests to verify its behavior.

  • Added SerialWriteError class in src/samps/errors.py with basic inheritance and message handling.
  • Updated init.py to export SerialWriteError.
  • Added unit tests in test/test_errors.py to ensure proper behavior and inheritance of SerialWriteError.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/test_errors.py Added unit tests for SerialWriteError to verify inheritance and error messages.
src/samps/errors.py Added new SerialWriteError class replicating the design of SerialReadError.
src/samps/init.py Updated module exports to include SerialWriteError.

@michealroberts michealroberts merged commit c4de698 into main May 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants