public class RedirectException extends Exception
ClientProperties.FOLLOW_REDIRECTS
is set to true
.
This exception is thrown when any of the Redirect HTTP response status codes (301, 302, 303, 307, 308) is received and:
NettyClientProperties.MAX_REDIRECTS
URI
.
Constructor and Description |
---|
RedirectException(String message)
Constructor.
|
RedirectException(String message,
Throwable t)
Constructor.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RedirectException(String message)
message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.public RedirectException(String message, Throwable t)
message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.