- /**
- *
- */
- import org.springframework.http.HttpStatus;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- /**
- * Global custom checked exception
- *
- * @author karthik
- *
- */
- @Data
- @EqualsAndHashCode(callSuper = false)
- public class WebappException extends Exception {
- /**
- *
- */
- private static final long serialVersionUID = -446084203675831053L;
- private HttpStatus status;
- private String message;
- private transient Object details;
- public WebappException(Exception e) {
- super(e);
- this.message = e.getMessage();
- this.details = null;
- this.status = null;
- }
- public WebappException(Exception e, HttpStatus status) {
- super(e);
- this.message = e.getMessage();
- this.details = null;
- this.status = status;
- }
- public WebappException(String message, Object details, HttpStatus status) {
- this.message = message;
- this.details = details;
- this.status = status;
- }
- public WebappException(String message, HttpStatus status) {
- this.message = message;
- this.details = message;
- this.status = status;
- }
- }
[text] exception
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: