Skip to content

Commit affb35d

Browse files
authored
Add description for RetryableException (OpenFeign#2459)
* Add description for RetryableException * run license formatter
1 parent 13ec657 commit affb35d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
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
@@ -30,7 +30,8 @@ public class RetryableException extends FeignException {
3030
private final HttpMethod httpMethod;
3131

3232
/**
33-
* @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header.
33+
* @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header. If you
34+
* don't want to retry, set null.
3435
*/
3536
public RetryableException(
3637
int status,
@@ -58,7 +59,8 @@ public RetryableException(
5859
}
5960

6061
/**
61-
* @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header.
62+
* @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header. If you
63+
* don't want to retry, set null.
6264
*/
6365
public RetryableException(
6466
int status, String message, HttpMethod httpMethod, Long retryAfter, Request request) {

0 commit comments

Comments
 (0)