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