From 2736939ae8530db6c3ed3d3ff20a8455fc8cc41b Mon Sep 17 00:00:00 2001 From: "Taeyang Jin (Theo)" Date: Thu, 27 Jun 2024 21:11:53 +0900 Subject: [PATCH] Add description for RetryableException (#2459) * Add description for RetryableException * run license formatter --- core/src/main/java/feign/RetryableException.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/feign/RetryableException.java b/core/src/main/java/feign/RetryableException.java index e304725a6..eb7d97f69 100644 --- a/core/src/main/java/feign/RetryableException.java +++ b/core/src/main/java/feign/RetryableException.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -31,6 +31,7 @@ public class RetryableException extends FeignException { /** * @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header. + * If you don't want to retry, set null. */ public RetryableException(int status, String message, HttpMethod httpMethod, Throwable cause, Long retryAfter, Request request) { @@ -49,6 +50,7 @@ public RetryableException(int status, String message, HttpMethod httpMethod, Thr /** * @param retryAfter usually corresponds to the {@link feign.Util#RETRY_AFTER} header. + * If you don't want to retry, set null. */ public RetryableException(int status, String message, HttpMethod httpMethod, Long retryAfter, Request request) {