Skip to content

Commit 974c49f

Browse files
authored
Add description for RetryableException (#2459)
* Add description for RetryableException * run license formatter
1 parent 83376ed commit 974c49f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/feign/RetryableException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 The Feign Authors
2+
* Copyright 2012-2024 The Feign Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
* in compliance with the License. You may obtain a copy of the License at
@@ -31,6 +31,7 @@ public class RetryableException extends FeignException {
3131

3232
/**
3333
* @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header.
34+
* If you don't want to retry, set null.
3435
*/
3536
public RetryableException(int status, String message, HttpMethod httpMethod, Throwable cause,
3637
Long retryAfter, Request request) {
@@ -49,6 +50,7 @@ public RetryableException(int status, String message, HttpMethod httpMethod, Thr
4950

5051
/**
5152
* @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header.
53+
* If you don't want to retry, set null.
5254
*/
5355
public RetryableException(int status, String message, HttpMethod httpMethod, Long retryAfter,
5456
Request request) {

0 commit comments

Comments
 (0)