Class ScxHttpExceptionHandler
java.lang.Object
cool.scx.web.exception_handler.ScxHttpExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
- Direct Known Subclasses:
LastExceptionHandler
ScxHttpException 处理器
- Version:
- 1.11.8
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean判断是否可以处理这个异常void将结果处理并返回voidhandleScxHttpException(cool.scx.http.exception.ScxHttpException scxHttpException, cool.scx.http.routing.RoutingContext routingContext) static voidsendToClient(cool.scx.http.HttpStatusCode statusCode, String info, cool.scx.http.routing.RoutingContext routingContext)
-
Constructor Details
-
ScxHttpExceptionHandler
public ScxHttpExceptionHandler(boolean useDevelopmentErrorPage)
-
-
Method Details
-
sendToClient
public static void sendToClient(cool.scx.http.HttpStatusCode statusCode, String info, cool.scx.http.routing.RoutingContext routingContext) -
handleScxHttpException
public void handleScxHttpException(cool.scx.http.exception.ScxHttpException scxHttpException, cool.scx.http.routing.RoutingContext routingContext) -
canHandle
Description copied from interface:ExceptionHandler判断是否可以处理这个异常- Specified by:
canHandlein interfaceExceptionHandler- Parameters:
throwable- 异常- Returns:
- a
-
handle
Description copied from interface:ExceptionHandler将结果处理并返回- Specified by:
handlein interfaceExceptionHandler- Parameters:
throwable- aroutingContext- a
-