NotFoundException.java 572 Bytes
Newer Older
1 2 3 4 5
package pwc.taxtech.atms.exception;

import org.springframework.http.ResponseEntity;

public class NotFoundException extends ApiException {
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    public NotFoundException() {
        super();
    }

    public NotFoundException(String message) {
        super(message);
    }

    public NotFoundException(String message, Throwable cause) {
        super(message, cause);
    }

    public NotFoundException(Throwable cause) {
        super(cause);
    }

22 23 24 25 26
    @Override
    public <Object> ResponseEntity handle() {
        return ResponseEntity.notFound().build();
    }
}