Use consistent version strings for 6.2
This commit is contained in:
@@ -123,14 +123,14 @@ public @interface ExceptionHandler {
|
||||
/**
|
||||
* Exceptions handled by the annotated method. If empty, will default to any
|
||||
* exceptions listed in the method argument list.
|
||||
* @since 6.2.0
|
||||
* @since 6.2
|
||||
*/
|
||||
@AliasFor("value")
|
||||
Class<? extends Throwable>[] exception() default {};
|
||||
|
||||
/**
|
||||
* Media Types that can be produced by the annotated method.
|
||||
* @since 6.2.0
|
||||
* @since 6.2
|
||||
*/
|
||||
String[] produces() default {};
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.util.Assert;
|
||||
* <li>the method in charge of handling the exception
|
||||
* </ul>
|
||||
* @author Brian Clozel
|
||||
* @since 6.2.0
|
||||
* @since 6.2
|
||||
*/
|
||||
public class ExceptionHandlerMappingInfo {
|
||||
|
||||
@@ -40,6 +40,7 @@ public class ExceptionHandlerMappingInfo {
|
||||
|
||||
private final Method handlerMethod;
|
||||
|
||||
|
||||
ExceptionHandlerMappingInfo(Set<Class<? extends Throwable>> exceptionTypes, Set<MediaType> producibleMediaTypes, Method handlerMethod) {
|
||||
Assert.notNull(exceptionTypes, "exceptionTypes should not be null");
|
||||
Assert.notNull(producibleMediaTypes, "producibleMediaTypes should not be null");
|
||||
@@ -49,6 +50,7 @@ public class ExceptionHandlerMappingInfo {
|
||||
this.handlerMethod = handlerMethod;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the method responsible for handling the exception.
|
||||
*/
|
||||
|
||||
@@ -186,7 +186,7 @@ public class ExceptionHandlerMethodResolver {
|
||||
* @param exception the exception
|
||||
* @param mediaType the media type requested by the HTTP client
|
||||
* @return a Method to handle the exception, or {@code null} if none found
|
||||
* @since 6.2.0
|
||||
* @since 6.2
|
||||
*/
|
||||
@Nullable
|
||||
public ExceptionHandlerMappingInfo resolveExceptionMapping(Throwable exception, MediaType mediaType) {
|
||||
|
||||
Reference in New Issue
Block a user