Skip to content

Need more explicit exceptions so its easier to test in application codeΒ #488

@wdroste

Description

@wdroste

For instance

new RuntimeException(
            "Switch space `"
            + config.getSpaceName()
            + "' failed: "
            + resultSet.getErrorMessage());

If this was a NoSpaceFoundException it would be easier to test. Frequently we'd like know if an exception is one we can retry so having ones that implement TransitentException or some ClientException is helpful.

For instance this NoSpaceFoundException is not retryable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementType: make the code neat or more efficient

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions