@ExceptionHandler(ShenyuException.class)
    protected ShenyuAdminResult handleShenyuException(final ShenyuException exception) {
        LOG.error(exception.getMessage(), exception);
        String message = Objects.isNull(exception.getCause()) ? null : exception.getCause().getMessage();
        if (!StringUtils.hasText(message)) {
            message = exception.getMessage();
        }
        return ShenyuAdminResult.error(message);
    }
ControllerMethodResolver.

@see <a href="https://dzone.com/articles/global-exception-handling-with-controlleradvice">global-exception-handling-with-controlleradvice</a>
shenyu-admin/src/main/java/org/apache/shenyu/admin/exception/ExceptionHandlers.java