Skip to content

Commit 465f532

Browse files
committed
Modified DnsException to pass tests.
1 parent bf1361c commit 465f532

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

gcloud-java-dns/src/main/java/com/google/gcloud/dns/DnsException.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@
1818

1919
import com.google.gcloud.BaseServiceException;
2020

21+
import java.io.IOException;
22+
2123
/**
2224
* DNS service exception.
2325
*/
2426
public class DnsException extends BaseServiceException {
2527

2628
private static final long serialVersionUID = 490302380416260252L;
2729

28-
public DnsException(int code, String message, boolean retryable) {
29-
super(code, message, retryable);
30-
}
31-
32-
public DnsException(int code, String message, boolean retryable, Exception cause) {
33-
super(code, message, retryable, cause);
30+
public DnsException(IOException exception, boolean idempotent) {
31+
super(exception, idempotent);
3432
}
3533

3634
//TODO(mderka) Add translation and retry functionality. Created issue #593.

0 commit comments

Comments
 (0)