Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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