Initial commit
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
package com.iconplus.smartproc.exception;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class ErrorDetails {
|
||||
private Date timestamp;
|
||||
private String message;
|
||||
private String details;
|
||||
|
||||
public ErrorDetails(Date timestamp, String message, String details) {
|
||||
super();
|
||||
this.timestamp = timestamp;
|
||||
this.message = message;
|
||||
this.details = details;
|
||||
}
|
||||
|
||||
public Date getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public String getDetails() {
|
||||
return details;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.iconplus.smartproc.exception;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
|
||||
@ResponseStatus(value = HttpStatus.NOT_FOUND)
|
||||
public class ResourceNotFoundException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ResourceNotFoundException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user