pavankjadda / eShopping

eShopping application implemented with Spring Boot, Spring Security, Spring Data and Spring Session
GNU General Public License v3.0
10 stars 10 forks source link

Add Generic Exception and handler to handle all exceptions #42

Closed pavankjadda closed 5 years ago

pavankjadda commented 5 years ago
  1. Add Generic Exception and handler to handle all exceptions
  2. Create ErrorMessage class to standardize error message format
pavankjadda commented 5 years ago
public class ErrorMessage implements Serializable
{
    private static final long serialVersionUID = 6330014835965189038L;

    private String message;
    private String errorCode;
    private HttpStatus status;
    private Integer statusCode;
    private LocalDateTime timestamp;
    private Map<String,String> errors;
    private String path;

}
pavankjadda commented 5 years ago

Commit dcf5aeba3fce8c816051c0e7c8cd183a21710e35 implements this