Skip to content

Add ShadeError base exception class#21

Merged
codebestia merged 1 commit into
ShadeProtocol:mainfrom
Errordog2:codex/shade-error-15
Jun 23, 2026
Merged

Add ShadeError base exception class#21
codebestia merged 1 commit into
ShadeProtocol:mainfrom
Errordog2:codex/shade-error-15

Conversation

@Errordog2

Copy link
Copy Markdown
Contributor

Summary

  • add shade.errors with a common ShadeError base class carrying message, optional HTTP status, and raw response body
  • add SDK-specific subclasses for authentication, invalid request, not found, and network failures
  • export the error classes from the package root so callers can catch shade.ShadeError

Validation

  • python -m pytest tests/test_errors.py tests/test_gateway.py -q (6 passed)
  • python -m compileall -q src tests
  • git diff --check

Closes #15

@codebestia codebestia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!
Thank you for your contribution @Errordog2

@codebestia codebestia merged commit d9eb3d8 into ShadeProtocol:main Jun 23, 2026
1 check passed
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.

Implement ShadeError base exception class

2 participants