package pwc.taxtech.atms.exception; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; public class ServerErrorException extends ApiException { public ServerErrorException() { super(); } public ServerErrorException(String message) { super(message); } public ServerErrorException(String message, Throwable cause) { super(message, cause); } public ServerErrorException(Throwable cause) { super(cause); } @Override public <Object> ResponseEntity handle() { return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } }