All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.kafkistry.webapp.controller.ErrorController.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.infobip.kafkistry.webapp.controller

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.servlet.ModelAndView
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.boot.web.servlet.error.ErrorController as SpringErrorController

@Controller
@RequestMapping("\${app.http.root-path}")
class ErrorController : BaseController(), SpringErrorController {

    @RequestMapping("/error")
    fun handleError(
        request: HttpServletRequest, response: HttpServletResponse, exception: Exception
    ): ModelAndView = handleKafkistryException(request, response, exception)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy