Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.ars.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
// TODO add generic information
@ResponseStatus(value = HttpStatus.NOT_FOUND)
@SuppressWarnings("serial")
public class EntityNotFoundException extends BusinessException {
private String id;
public EntityNotFoundException(String entityId) {
super("could not find entity with id '" + entityId + "'.");
this.id = entityId;
}
public EntityNotFoundException() {
super("could not find entity");
}
public String getId() {
return id;
}
public EntityNotFoundException setId(String id) {
this.id = id;
return this;
}
}