Skip to content

Improve API of Validate for checking default messages #63

@alexander-yevsyukov

Description

@alexander-yevsyukov

Now it's not clear that IllegalStateException would be called on checkNotDefault().
The user expects IllegalArgumentException.

We need to have checkNotDefault(), which throws IAE, and checkNotDefaultState().
Similarly, we need to have checkDefault() and checkDefaultState().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions