public class ExceptionHandlerExtensions extends Object
ExceptionHandlerExtensions holds factory methods for create the view model bean
for exception representations| Constructor and Description |
|---|
ExceptionHandlerExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static ExceptionViewModel |
newExceptionViewModel(javax.servlet.http.HttpServletRequest request,
org.springframework.http.HttpStatus httpStatus,
String developerMessage,
String userMessage)
Factory method for create a new
ExceptionViewModel from the given arguments |
static ExceptionViewModel |
newExceptionViewModel(org.springframework.web.context.request.ServletWebRequest request,
org.springframework.http.HttpStatus status,
String developerMessage,
String userMessage)
Factory method for create a new
ExceptionViewModel from the given arguments |
static ExceptionViewModel |
newExceptionViewModelWith(org.springframework.web.context.request.WebRequest request,
org.springframework.http.HttpStatus status,
String developerMessage,
String userMessage)
Factory method for create a new
ExceptionViewModel from the given arguments |
static org.springframework.http.ResponseEntity<Object> |
newResponseEntity(org.springframework.validation.BindException exception,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request,
org.springframework.context.MessageSource messageSource)
Factory method for create a new
ResponseEntity from the given arguments |
static org.springframework.http.ResponseEntity<Object> |
newResponseEntity(ExceptionViewModel exceptionViewModel)
Factory method for create a new
ResponseEntity with the given
ExceptionViewModel object |
public static org.springframework.http.ResponseEntity<Object> newResponseEntity(ExceptionViewModel exceptionViewModel)
ResponseEntity with the given
ExceptionViewModel objectexceptionViewModel - the ExceptionViewModel objectResponseEntity objectpublic static ExceptionViewModel newExceptionViewModelWith(org.springframework.web.context.request.WebRequest request, org.springframework.http.HttpStatus status, String developerMessage, String userMessage)
ExceptionViewModel from the given argumentsrequest - the requeststatus - the statusdeveloperMessage - the developer messageuserMessage - the user messageExceptionViewModel objectpublic static ExceptionViewModel newExceptionViewModel(org.springframework.web.context.request.ServletWebRequest request, org.springframework.http.HttpStatus status, String developerMessage, String userMessage)
ExceptionViewModel from the given argumentsrequest - the requeststatus - the statusdeveloperMessage - the developer messageuserMessage - the user messageExceptionViewModel objectpublic static ExceptionViewModel newExceptionViewModel(javax.servlet.http.HttpServletRequest request, org.springframework.http.HttpStatus httpStatus, String developerMessage, String userMessage)
ExceptionViewModel from the given argumentsrequest - the requesthttpStatus - the http statusdeveloperMessage - the developer messageuserMessage - the user messageExceptionViewModel objectpublic static org.springframework.http.ResponseEntity<Object> newResponseEntity(org.springframework.validation.BindException exception, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request, org.springframework.context.MessageSource messageSource)
ResponseEntity from the given argumentsexception - the exceptionheaders - the headersstatus - the statusrequest - the requestmessageSource - the message sourceResponseEntity objectCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.