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

[feat] Error Handling Enhancement #1

Open
san-ghun opened this issue Nov 20, 2024 · 0 comments
Open

[feat] Error Handling Enhancement #1

san-ghun opened this issue Nov 20, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@san-ghun
Copy link
Owner

The error handling in tiny42.py could be improved. Currently, many operations silently fail or only print error messages. Consider:

  • Creating custom exceptions for different error scenarios
  • Implementing proper error propagation
  • Adding more detailed error messages

Example implementation:

class Tiny42Error(Exception):
    """Base exception for tiny42 errors."""
    pass

class DockerEnvironmentError(Tiny42Error):
    """Raised when Docker environment is not properly configured."""
    pass

class WorkspaceError(Tiny42Error):
    """Raised when workspace-related issues occur."""
    pass
@san-ghun san-ghun added enhancement New feature or request good first issue Good for newcomers labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant