Class NotAcceptableApiVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.ErrorResponseException
org.springframework.web.server.ResponseStatusException
org.springframework.web.accept.InvalidApiVersionException
org.springframework.web.accept.NotAcceptableApiVersionException
- All Implemented Interfaces:
- Serializable,- ErrorResponse
Exception raised when an API version is valid, but did not match the versions
 declared in request mappings for the endpoint. This can happen when a
 controller method is mapped with a fixed version, e.g. "2", but the request
 is for a higher version.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.web.ErrorResponseErrorResponse.Builder, ErrorResponse.Interceptor
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.springframework.web.accept.InvalidApiVersionExceptiongetVersionMethods inherited from class org.springframework.web.server.ResponseStatusExceptiongetHeaders, getMessage, getReason, updateAndGetBodyMethods inherited from class org.springframework.web.ErrorResponseExceptiongetBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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.web.ErrorResponsegetDetailMessageArguments, getTitleMessageCode, getTypeMessageCode
- 
Constructor Details- 
NotAcceptableApiVersionException
 
-