public class ErrorResponse extends Object
Constructor and Description |
---|
ErrorResponse(long timestamp,
int status,
String error,
String message,
String path)
Error response constructor.
|
ErrorResponse(Map<String,Object> errAttrs)
Error response constructor from
ErrorAttributes |
Modifier and Type | Method and Description |
---|---|
String |
getError() |
String |
getMessage() |
String |
getPath() |
int |
getStatus() |
long |
getTimestamp() |
String |
toString() |
public ErrorResponse(long timestamp, int status, String error, String message, String path)
timestamp
- A time stamp when the error occurred.status
- The HTTP status codeerror
- The HTTP status code descriptionmessage
- A message which elaborates the error furtherpath
- The path that was requestedCopyright © 2018 Walmart, Inc.. All rights reserved.