Class MethodValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.validation.method.MethodValidationException
- All Implemented Interfaces:
- Serializable,- MethodValidationResult
Exception that is a 
MethodValidationResult.- Since:
- 6.1
- Author:
- Rossen Stoyanchev
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn errors from cross-parameter validation.Return the method to which validation was applied.Return all validation results per method parameter, including bothMethodValidationResult.getValueResults()andMethodValidationResult.getBeanResults().Return the target of the method invocation to which validation was applied.booleanWhether the violations are for a return value.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.validation.method.MethodValidationResultgetAllErrors, getAllValidationResults, getBeanResults, getValueResults, hasErrors
- 
Constructor Details- 
MethodValidationException
 
- 
- 
Method Details- 
getTargetDescription copied from interface:MethodValidationResultReturn the target of the method invocation to which validation was applied.- Specified by:
- getTargetin interface- MethodValidationResult
 
- 
getMethodDescription copied from interface:MethodValidationResultReturn the method to which validation was applied.- Specified by:
- getMethodin interface- MethodValidationResult
 
- 
isForReturnValuepublic boolean isForReturnValue()Description copied from interface:MethodValidationResultWhether 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.- Specified by:
- isForReturnValuein interface- MethodValidationResult
 
- 
getParameterValidationResultsDescription copied from interface:MethodValidationResultReturn all validation results per method parameter, including bothMethodValidationResult.getValueResults()andMethodValidationResult.getBeanResults().Use MethodValidationResult.getCrossParameterValidationResults()for access to errors from cross-parameter validation.- Specified by:
- getParameterValidationResultsin interface- MethodValidationResult
- See Also:
 
- 
getCrossParameterValidationResultsDescription copied from interface:MethodValidationResultReturn errors from cross-parameter validation.- Specified by:
- getCrossParameterValidationResultsin interface- MethodValidationResult
 
 
-