ConflictException.java 678 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package pwc.taxtech.atms.exception;

import org.springframework.http.ResponseEntity;

import javax.net.ssl.SSLEngineResult;

import static org.springframework.http.HttpStatus.CONFLICT;

public class ConflictException extends ApiException {
    public ConflictException() {
        super();
    }

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

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

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

    @Override
    public <Object> ResponseEntity handle() {
        return ResponseEntity.status(CONFLICT).build();
    }
}