Public Access
Post-merge / detect-type (push) Failing after 9s
Post-merge / validate-commit-msg (push) Has been skipped
Post-merge / release (push) Has been skipped
Post-merge / sync-wiki (push) Has been skipped
Post-merge / vikunja (push) Has been skipped
Post-merge / configure-repo (push) Has been skipped
Post-merge / badges (push) Failing after 25s
Port core modules (config, exceptions, i18n, api_clients, gitea_cli), 14 CI scripts, 6 dev tools, 5 molecule tools, CLI entry point, workflows, Makefile, tests (784 tests, 100% coverage), and documentation from GRM. The devx package is published to the Gitea PyPI registry and consumed by GRM, infra, and other oblachno-oss projects as a pip dependency. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
17 lines
406 B
Python
17 lines
406 B
Python
"""Custom exceptions for devx tools and API clients."""
|
|
|
|
|
|
class DevxError(Exception):
|
|
"""Base exception for all devx errors."""
|
|
|
|
pass
|
|
|
|
|
|
class APIError(DevxError):
|
|
"""Raised when a REST API call returns an HTTP error."""
|
|
|
|
def __init__(self, status: int, message: str) -> None:
|
|
self.status = status
|
|
self.message = message
|
|
super().__init__(f"HTTP {status}: {message}")
|