Interface ExceptionHandler

All Known Implementing Classes:
LastExceptionHandler, ScxHttpExceptionHandler

public interface ExceptionHandler
路由异常处理器
Version:
1.11.8
Author:
scx567888
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(Throwable throwable)
    判断是否可以处理这个异常
    void
    handle(Throwable throwable, cool.scx.http.routing.RoutingContext routingContext)
    将结果处理并返回
  • Method Details

    • canHandle

      boolean canHandle(Throwable throwable)
      判断是否可以处理这个异常
      Parameters:
      throwable - 异常
      Returns:
      a
    • handle

      void handle(Throwable throwable, cool.scx.http.routing.RoutingContext routingContext)
      将结果处理并返回
      Parameters:
      throwable - a
      routingContext - a