AppErrorController

class AppErrorController: Any

Fields

Name Description
var errorAttributes: ErrorAttributes

Constructors

<init>

constructor(errorAttributes: ErrorAttributes)

Parameters

Name Description
errorAttributes: ErrorAttributes

Methods

errorHtml

fun errorHtml(webRequest: WebRequest): ModelAndView

Parameters

Name Description
webRequest: WebRequest

ReturnValue

Name Description
ModelAndView

error

fun error(request: HttpServletRequest, webRequest: WebRequest): ResponseEntity><Map<String, Any>>

Supports other formats like JSON, XML

Parameters

Name Description
request: HttpServletRequest
webRequest: WebRequest

ReturnValue

Name Description
ResponseEntity><Map<String, Any>>

getErrorPath

fun getErrorPath(): String

Returns the path of the error page.

ReturnValue

Name Description
String

the error path