Skip to content

Generate consistent validation error messages in RetryPolicy #35355

@snicoll

Description

@snicoll

Looking at RetryPolicy.builder() for invalid cases, the exception message for maxDelay is not consistent.

If the delay is negative, the error message is Invalid delay (-1ms): must be >= 0.. If the maxDelay is negative, it is Invalid duration (-1ms): maxDelay must be positive..

There is an assertIsPositive() method that's only called by maxDelay().

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions