Class ScxHttpExceptionHandler

java.lang.Object
cool.scx.web.exception_handler.ScxHttpExceptionHandler
All Implemented Interfaces:
ExceptionHandler
Direct Known Subclasses:
LastExceptionHandler

public class ScxHttpExceptionHandler extends Object implements ExceptionHandler
ScxHttpException 处理器
Version:
1.11.8
Author:
scx567888
  • Constructor Details

    • ScxHttpExceptionHandler

      public ScxHttpExceptionHandler(boolean useDevelopmentErrorPage)
  • Method Details

    • sendToClient

      public static void sendToClient(int statusCode, String title, String info, io.vertx.ext.web.RoutingContext routingContext)
    • handleScxHttpException

      public void handleScxHttpException(ScxHttpException scxHttpException, io.vertx.ext.web.RoutingContext routingContext)
    • canHandle

      public boolean canHandle(Throwable throwable)
      Description copied from interface: ExceptionHandler
      判断是否可以处理这个异常
      Specified by:
      canHandle in interface ExceptionHandler
      Parameters:
      throwable - 异常
      Returns:
      a
    • handle

      public void handle(Throwable throwable, io.vertx.ext.web.RoutingContext routingContext)
      Description copied from interface: ExceptionHandler
      将结果处理并返回
      Specified by:
      handle in interface ExceptionHandler
      Parameters:
      throwable - a
      routingContext - a