Interface ConstraintViolationConverter
public interface ConstraintViolationConverter
Converts a
ConstraintViolationException into another exception. The converted exception is re-thrown.
By default, a ConstraintViolationException is converted into McpException with JSON-RPC error code
-32602 (invalid params) and the message contains ConstraintViolation.getPropertyPath() and
ConstraintViolation.getMessage() for each violation.
-
Method Summary
-
Method Details
-
convert
- Parameters:
exception- (must not benull)- Returns:
- the resulting exception
-