Class InvalidApiVersionException
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
- All Implemented Interfaces:
Serializable, ErrorResponse
- Direct Known Subclasses:
NotAcceptableApiVersionException
Exception raised when an API version cannot be parsed, or is not in the
supported version set.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ErrorResponse
ErrorResponse.Builder, ErrorResponse.Interceptor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ResponseStatusException
getHeaders, getMessage, getReason, updateAndGetBodyMethods inherited from class ErrorResponseException
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeMethods inherited from class NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ErrorResponse
getDetailMessageArguments, getTitleMessageCode, getTypeMessageCode
-
Constructor Details
-
InvalidApiVersionException
-
InvalidApiVersionException
-
-
Method Details
-
getVersion
Return the requested version.
-