类 RequestBindingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.bind.RequestBindingException
所有已实现的接口:
HttpStatusCodeProvider, ErrorResponse, Serializable
直接已知子类:
MethodParameterResolvingException, MissingRequestValueException, UnsatisfiedRequestParameterException

public class RequestBindingException extends cn.taketoday.core.NestedRuntimeException implements ErrorResponse
Fatal binding exception, thrown when we want to treat binding exceptions as unrecoverable.

Extends ServletException for convenient throwing in any Servlet resource (such as a Filter), and NestedServletException for proper root cause handling (as the plain ServletException doesn't expose its root cause at all).

从以下版本开始:
4.0 2022/1/22 22:54
作者:
Rod Johnson, Juergen Hoeller, Harry Yang
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • RequestBindingException

      public RequestBindingException(String msg)
      Constructor for RequestBindingException.
      参数:
      msg - the detail message
    • RequestBindingException

      public RequestBindingException(String msg, Throwable cause)
      Constructor for RequestBindingException.
      参数:
      msg - the detail message
      cause - the root cause
  • 方法详细资料

    • getStatusCode

      public HttpStatusCode getStatusCode()
      从接口复制的说明: ErrorResponse
      Return the HTTP status code to use for the response.
      指定者:
      getStatusCode 在接口中 ErrorResponse
      指定者:
      getStatusCode 在接口中 HttpStatusCodeProvider
    • getBody

      public ProblemDetail getBody()
      从接口复制的说明: ErrorResponse
      Return the body for the response, formatted as an RFC 7807 ProblemDetail whose status should match the response status.
      指定者:
      getBody 在接口中 ErrorResponse
    • setType

      public void setType(URI type)
      Set the type field of the response body.
      参数:
      type - the problem type
    • setTitle

      public void setTitle(@Nullable String title)
      Set the title field of the response body.
      参数:
      title - the problem title
    • setDetail

      public void setDetail(@Nullable String detail)
      Set the detail field of the response body.
      参数:
      detail - the problem detail
    • setInstance

      public void setInstance(@Nullable URI instance)
      Set the instance field of the response body.
      参数:
      instance - the problem instance