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 newExceptionViewModel
instance.ExceptionViewModel
(Map<String, String> additionalInfos, String developerMessage, org.springframework.http.HttpStatus httpStatus, LocalDateTime occured, String requestUrl, String userMessage) Creates a newExceptionViewModel
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
The map for additional informationsThe developer message.org.springframework.http.HttpStatus
The http status.The time when the exception is occured.The request url.The user message.int
hashCode()
void
setDeveloperMessage
(String developerMessage) The developer message.void
setHttpStatus
(org.springframework.http.HttpStatus httpStatus) The http status.void
setOccured
(LocalDateTime occured) The time when the exception is occured.void
setRequestUrl
(String requestUrl) The request url.void
setUserMessage
(String userMessage) The user message.toString()
-
Constructor Details
-
ExceptionViewModel
Creates a newExceptionViewModel
instance.- 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 newExceptionViewModel
instance.- 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
-