Search in sources :

Example 1 with MissingPathVariableException

use of cn.taketoday.web.bind.MissingPathVariableException in project today-framework by TAKETODAY.

the class ResponseEntityExceptionHandlerTests method missingPathVariable.

@Test
public void missingPathVariable() throws NoSuchMethodException {
    Method method = getClass().getDeclaredMethod("handle", String.class);
    MethodParameter parameter = new MethodParameter(method, 0);
    Exception ex = new MissingPathVariableException("param", parameter);
    testException(ex);
}
Also used : MissingPathVariableException(cn.taketoday.web.bind.MissingPathVariableException) HttpMethod(cn.taketoday.http.HttpMethod) Method(java.lang.reflect.Method) MethodParameter(cn.taketoday.core.MethodParameter) MissingRequestPartException(cn.taketoday.web.bind.resolver.MissingRequestPartException) MissingPathVariableException(cn.taketoday.web.bind.MissingPathVariableException) ServletException(jakarta.servlet.ServletException) HttpRequestMethodNotSupportedException(cn.taketoday.web.HttpRequestMethodNotSupportedException) MissingRequestParameterException(cn.taketoday.web.bind.MissingRequestParameterException) RequestBindingException(cn.taketoday.web.bind.RequestBindingException) ConversionNotSupportedException(cn.taketoday.beans.ConversionNotSupportedException) HttpMessageNotReadableException(cn.taketoday.http.converter.HttpMessageNotReadableException) TypeMismatchException(cn.taketoday.beans.TypeMismatchException) HttpMediaTypeNotSupportedException(cn.taketoday.web.HttpMediaTypeNotSupportedException) HttpMediaTypeNotAcceptableException(cn.taketoday.web.HttpMediaTypeNotAcceptableException) BindException(cn.taketoday.validation.BindException) AsyncRequestTimeoutException(cn.taketoday.web.context.async.AsyncRequestTimeoutException) HttpMessageNotWritableException(cn.taketoday.http.converter.HttpMessageNotWritableException) MethodArgumentNotValidException(cn.taketoday.web.bind.MethodArgumentNotValidException) Test(org.junit.jupiter.api.Test)

Aggregations

ConversionNotSupportedException (cn.taketoday.beans.ConversionNotSupportedException)1 TypeMismatchException (cn.taketoday.beans.TypeMismatchException)1 MethodParameter (cn.taketoday.core.MethodParameter)1 HttpMethod (cn.taketoday.http.HttpMethod)1 HttpMessageNotReadableException (cn.taketoday.http.converter.HttpMessageNotReadableException)1 HttpMessageNotWritableException (cn.taketoday.http.converter.HttpMessageNotWritableException)1 BindException (cn.taketoday.validation.BindException)1 HttpMediaTypeNotAcceptableException (cn.taketoday.web.HttpMediaTypeNotAcceptableException)1 HttpMediaTypeNotSupportedException (cn.taketoday.web.HttpMediaTypeNotSupportedException)1 HttpRequestMethodNotSupportedException (cn.taketoday.web.HttpRequestMethodNotSupportedException)1 MethodArgumentNotValidException (cn.taketoday.web.bind.MethodArgumentNotValidException)1 MissingPathVariableException (cn.taketoday.web.bind.MissingPathVariableException)1 MissingRequestParameterException (cn.taketoday.web.bind.MissingRequestParameterException)1 RequestBindingException (cn.taketoday.web.bind.RequestBindingException)1 MissingRequestPartException (cn.taketoday.web.bind.resolver.MissingRequestPartException)1 AsyncRequestTimeoutException (cn.taketoday.web.context.async.AsyncRequestTimeoutException)1 ServletException (jakarta.servlet.ServletException)1 Method (java.lang.reflect.Method)1 Test (org.junit.jupiter.api.Test)1