Class ExceptionViewModel.ExceptionViewModelBuilder
java.lang.Object
io.github.astrapi69.spring.exceptionhandling.ExceptionViewModel.ExceptionViewModelBuilder
- Enclosing class:
- ExceptionViewModel
-
Method Summary
Modifier and TypeMethodDescriptionadditionalInfos(Map<String, String> additionalInfos) The map for additional informationsbuild()developerMessage(String developerMessage) The developer message.httpStatus(org.springframework.http.HttpStatus httpStatus) The http status.occured(LocalDateTime occured) The time when the exception is occured.requestUrl(String requestUrl) The request url.toString()userMessage(String userMessage) The user message.
-
Method Details
-
additionalInfos
public ExceptionViewModel.ExceptionViewModelBuilder additionalInfos(Map<String, String> additionalInfos) The map for additional informations- Returns:
this.
-
developerMessage
The developer message.- Returns:
this.
-
httpStatus
public ExceptionViewModel.ExceptionViewModelBuilder httpStatus(org.springframework.http.HttpStatus httpStatus) The http status.- Returns:
this.
-
occured
The time when the exception is occured.- Returns:
this.
-
requestUrl
The request url.- Returns:
this.
-
userMessage
The user message.- Returns:
this.
-
build
-
toString
-