Class DefaultHttpServerErrorHandler
java.lang.Object
cool.scx.http.error_handler.DefaultHttpServerErrorHandler
- All Implemented Interfaces:
ScxHttpServerErrorHandler
默认错误处理器
- Version:
- 0.0.1
- Author:
- scx567888
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Throwable throwable, ScxHttpServerRequest request, ErrorPhase errorPhase) voidhandleScxHttpException(ScxHttpException scxHttpException, ScxHttpServerRequest request) static voidsendToClient(ScxHttpStatusCode statusCode, String info, ScxHttpServerRequest request)
-
Field Details
-
DEFAULT_HTTP_SERVER_ERROR_HANDLER
-
-
Constructor Details
-
DefaultHttpServerErrorHandler
public DefaultHttpServerErrorHandler(boolean useDevelopmentErrorPage)
-
-
Method Details
-
sendToClient
public static void sendToClient(ScxHttpStatusCode statusCode, String info, ScxHttpServerRequest request) -
handleScxHttpException
-
accept
- Specified by:
acceptin interfaceScxHttpServerErrorHandler
-