接口的使用
cn.taketoday.web.HandlerExceptionHandler
使用HandlerExceptionHandler的程序包
程序包
说明
Web Handler
Method handler
-
cn.taketoday.web中HandlerExceptionHandler的使用
修饰符和类型方法说明static HandlerExceptionHandlerHandlerExceptionHandler.find(cn.taketoday.context.ApplicationContext context) static HandlerExceptionHandlerHandlerExceptionHandler.find(cn.taketoday.context.ApplicationContext context, boolean detectAllHandlerExceptionHandlers) -
cn.taketoday.web.config中HandlerExceptionHandler的使用
修饰符和类型方法说明WebMvcConfigurationSupport.handlerExceptionHandler(AnnotationHandlerFactory handlerFactory) Returns aCompositeHandlerExceptionHandlercontaining a list of exception resolvers obtained either throughWebMvcConfigurationSupport.configureExceptionHandlers(java.util.List<cn.taketoday.web.HandlerExceptionHandler>)or throughWebMvcConfigurationSupport.addDefaultHandlerExceptionHandlers(java.util.List<cn.taketoday.web.HandlerExceptionHandler>, cn.taketoday.web.handler.method.AnnotationHandlerFactory).类型变量类型为HandlerExceptionHandler的cn.taketoday.web.config中的方法参数修饰符和类型方法说明protected final voidWebMvcConfigurationSupport.addDefaultHandlerExceptionHandlers(List<HandlerExceptionHandler> handlers, AnnotationHandlerFactory handlerFactory) A method available to subclasses for adding defaultHandlerExceptionHandlers.voidCompositeWebMvcConfigurer.configureExceptionHandlers(List<HandlerExceptionHandler> handlers) protected voidDelegatingWebMvcConfiguration.configureExceptionHandlers(List<HandlerExceptionHandler> handlers) protected voidWebMvcConfigurationSupport.configureExceptionHandlers(List<HandlerExceptionHandler> handlers) Override this method to configure the list ofHandlerExceptionHandlersto use.default voidWebMvcConfigurer.configureExceptionHandlers(List<HandlerExceptionHandler> handlers) ConfigureHandlerExceptionHandlervoidCompositeWebMvcConfigurer.extendExceptionHandlers(List<HandlerExceptionHandler> handlers) protected voidWebMvcConfigurationSupport.extendExceptionHandlers(List<HandlerExceptionHandler> handlers) Override this method to extend or modify the list ofHandlerExceptionHandlersafter it has been configured.default voidWebMvcConfigurer.extendExceptionHandlers(List<HandlerExceptionHandler> handlers) Override this method to extend or modify the list ofHandlerExceptionHandlersafter it has been configured. -
cn.taketoday.web.handler中HandlerExceptionHandler的使用
修饰符和类型类说明classAbstract base class forHandlerExceptionHandlerimplementations that support handling exceptions from handlers of typeActionMappingAnnotationHandler.classAbstract base class forHandlerExceptionHandlerimplementations.classclassAHandlerExceptionHandlerthat uses the@ResponseStatusannotation to map exceptions to HTTP status codes.classwrite 'classpath:error/xxx.png' for RenderedImageclassThe default implementation of theHandlerExceptionHandlerinterface, resolving standard Framework MVC exceptions and translating them to corresponding HTTP status codes.classHandlerExceptionHandlerimplementation that allows for mapping exception class names to view names, either for a set of given handlers or for all handlers in the DispatcherHandler.类型参数类型为HandlerExceptionHandler的cn.taketoday.web.handler中的字段返回变量类型为HandlerExceptionHandler的类型的cn.taketoday.web.handler中的方法修饰符和类型方法说明CompositeHandlerExceptionHandler.getExceptionHandlers()Return the list of exception resolvers to delegate to.类型变量类型为HandlerExceptionHandler的cn.taketoday.web.handler中的方法参数修饰符和类型方法说明voidCompositeHandlerExceptionHandler.setExceptionHandlers(List<HandlerExceptionHandler> handlers) Set the list of exception resolvers to delegate to.类型变量类型为HandlerExceptionHandler的cn.taketoday.web.handler中的构造器参数 -
cn.taketoday.web.handler.method中HandlerExceptionHandler的使用