Class ExceptionViewModel
java.lang.Object
io.github.astrapi69.spring.exceptionhandling.ExceptionViewModel
The class
ExceptionViewModel holds data for exception representations-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExceptionViewModel(Map<String, String> additionalInfos) Creates a newExceptionViewModelinstance.ExceptionViewModel(Map<String, String> additionalInfos, String developerMessage, org.springframework.http.HttpStatus httpStatus, LocalDateTime occured, String requestUrl, String userMessage) Creates a newExceptionViewModelinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanThe map for additional informationsThe developer message.org.springframework.http.HttpStatusThe http status.The time when the exception is occured.The request url.The user message.inthashCode()voidsetDeveloperMessage(String developerMessage) The developer message.voidsetHttpStatus(org.springframework.http.HttpStatus httpStatus) The http status.voidsetOccured(LocalDateTime occured) The time when the exception is occured.voidsetRequestUrl(String requestUrl) The request url.voidsetUserMessage(String userMessage) The user message.toString()
-
Constructor Details
-
ExceptionViewModel
Creates a newExceptionViewModelinstance.- Parameters:
additionalInfos- The map for additional informations
-
ExceptionViewModel
public ExceptionViewModel(Map<String, String> additionalInfos, String developerMessage, org.springframework.http.HttpStatus httpStatus, LocalDateTime occured, String requestUrl, String userMessage) Creates a newExceptionViewModelinstance.- Parameters:
additionalInfos- The map for additional informationsdeveloperMessage- The developer message.httpStatus- The http status.occured- The time when the exception is occured.requestUrl- The request url.userMessage- The user message.
-
-
Method Details
-
builder
-
toBuilder
-
getAdditionalInfos
The map for additional informations -
getDeveloperMessage
The developer message. -
getHttpStatus
public org.springframework.http.HttpStatus getHttpStatus()The http status. -
getOccured
The time when the exception is occured. -
getRequestUrl
The request url. -
getUserMessage
The user message. -
setDeveloperMessage
The developer message. -
setHttpStatus
public void setHttpStatus(org.springframework.http.HttpStatus httpStatus) The http status. -
setOccured
The time when the exception is occured. -
setRequestUrl
The request url. -
setUserMessage
The user message. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-