Initial commit

This commit is contained in:
Titan Hadiyan
2023-05-22 13:31:13 +07:00
parent bd98e00b57
commit 329d515577
45 changed files with 2190 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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);
}
}