Top Description Fields Constructors Methods
org.springframework.validation.method

public Class MethodValidationException

extends RuntimeException
implements MethodValidationResult
Class Inheritance
All Implemented Interfaces
org.springframework.validation.method.MethodValidationResult
Annotations
@SuppressWarnings:serial
Imports
java.lang.reflect.Method, java.util.List, org.springframework.util.Assert

Exception that is a MethodValidationResult.
Author
Rossen Stoyanchev
Since
6.1
See Also
MethodValidator

Field Summary

Modifier and TypeField and Description
private final MethodValidationResult

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<ParameterValidationResult>
public Method
getMethod()

Implements org.springframework.validation.method.MethodValidationResult.getMethod.

Return the method to which validation was applied.
public Object
getTarget()

Implements org.springframework.validation.method.MethodValidationResult.getTarget.

Return the target of the method invocation to which validation was applied.
public boolean
isForReturnValue()

Implements org.springframework.validation.method.MethodValidationResult.isForReturnValue.

Whether the violations are for a return value.

Field Detail

validationResultback to summary
private final MethodValidationResult validationResult

Constructor Detail

MethodValidationExceptionback to summary
public MethodValidationException(MethodValidationResult validationResult)

Method Detail

getAllValidationResultsback to summary
public List<ParameterValidationResult> getAllValidationResults()

Implements org.springframework.validation.method.MethodValidationResult.getAllValidationResults.

Doc from org.springframework.validation.method.MethodValidationResult.getAllValidationResults.

Return all validation results. This includes both method parameters with errors directly on them, and Object method parameters with nested errors on their fields and properties.

Annotations
@Override
getMethodback to summary
public Method getMethod()

Implements org.springframework.validation.method.MethodValidationResult.getMethod.

Doc from org.springframework.validation.method.MethodValidationResult.getMethod.

Return the method to which validation was applied.

Annotations
@Override
getTargetback to summary
public Object getTarget()

Implements org.springframework.validation.method.MethodValidationResult.getTarget.

Doc from org.springframework.validation.method.MethodValidationResult.getTarget.

Return the target of the method invocation to which validation was applied.

Annotations
@Override
isForReturnValueback to summary
public boolean isForReturnValue()

Implements org.springframework.validation.method.MethodValidationResult.isForReturnValue.

Doc from org.springframework.validation.method.MethodValidationResult.isForReturnValue.

Whether the violations are for a return value. If true the violations are from validating a return value. If false the violations are from validating method arguments.

Annotations
@Override