public class ErrorResponseDTO extends Object
Constructor and Description |
---|
ErrorResponseDTO(org.springframework.http.HttpStatus status,
String message)
Ctr
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns error message
|
org.springframework.http.HttpStatus |
getStatus()
Returns http status of the error
|
public ErrorResponseDTO(org.springframework.http.HttpStatus status, String message)
status
- http codemessage
- error messagepublic org.springframework.http.HttpStatus getStatus()
public String getMessage()
Copyright © 2020. All rights reserved.