类 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
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明Constructor for RequestBindingException.RequestBindingException(String msg, Throwable cause) Constructor for RequestBindingException. -
方法概要
修饰符和类型方法说明getBody()Return the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.Return the HTTP status code to use for the response.voidSet thedetailfield of the response body.voidsetInstance(URI instance) Set theinstancefield of the response body.voidSet thetitlefield of the response body.voidSet thetypefield of the response body.从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.web.ErrorResponse
getHeaders
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
body
-
-
构造器详细资料
-
RequestBindingException
Constructor for RequestBindingException.- 参数:
msg- the detail message
-
RequestBindingException
Constructor for RequestBindingException.- 参数:
msg- the detail messagecause- the root cause
-
-
方法详细资料
-
getStatusCode
从接口复制的说明:ErrorResponseReturn the HTTP status code to use for the response.- 指定者:
getStatusCode在接口中ErrorResponse- 指定者:
getStatusCode在接口中HttpStatusCodeProvider
-
getBody
从接口复制的说明:ErrorResponseReturn the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.- 指定者:
getBody在接口中ErrorResponse
-
setType
Set thetypefield of the response body.- 参数:
type- the problem type
-
setTitle
Set thetitlefield of the response body.- 参数:
title- the problem title
-
setDetail
Set thedetailfield of the response body.- 参数:
detail- the problem detail
-
setInstance
Set theinstancefield of the response body.- 参数:
instance- the problem instance
-