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

Error handling #26

Merged
merged 4 commits into from
Aug 16, 2024
Merged

Error handling #26

merged 4 commits into from
Aug 16, 2024

Commits on Aug 16, 2024

  1. Add GeneratorException for handling plugin generator issues

    Introduced a custom exception, `GeneratorException`, to handle scenarios where a requested plugin cannot be found, is disabled, or does not provide the required chunk generator or biome provider. Updated package-info.java to enforce not null constraints across the package.
    NonSwag committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    8d8412a View commit details
    Browse the repository at this point in the history
  2. Refactor error handling in Generator.deserialize

    Replaced `Preconditions` with custom `GeneratorException` for better error context. Improved readability and maintainability by making error messages more specific and informative.
    NonSwag committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    2212473 View commit details
    Browse the repository at this point in the history
  3. Remove unused import from LevelExtras.java

    The import for GeneratorView was removed because it is no longer used in the LevelExtras class. Keeping the code clean and free of unnecessary imports helps improve readability and maintainability.
    NonSwag committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    5d6f7c6 View commit details
    Browse the repository at this point in the history
  4. Handle GeneratorException in ServerListener

    Catch and log a specific GeneratorException during level loading to provide detailed error messages about generator issues. This improves error handling and makes debugging easier by specifying which generator failed and why.
    NonSwag committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    4266dab View commit details
    Browse the repository at this point in the history