Class TooManyRedirectsException
Represents errors that occur when an HTTP request is redirected more times than the set limit.
public class TooManyRedirectsException : WebException, ISerializable
- Inheritance
-
TooManyRedirectsException
- Implements
- Inherited Members
Remarks
This exception is thrown when an HTTP operation encounters more redirects than the application allows. It inherits from the WebException class and adds no new functionality; instead, it provides a more specific exception type to handle excessive HTTP redirection scenarios.
Constructors
TooManyRedirectsException()
Initializes a new instance of the TooManyRedirectsException class.
public TooManyRedirectsException()
TooManyRedirectsException(string)
Initializes a new instance of the TooManyRedirectsException class with a specified error message.
public TooManyRedirectsException(string message)
Parameters
message
stringThe message that describes the error.
TooManyRedirectsException(string, Exception)
Initializes a new instance of the TooManyRedirectsException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public TooManyRedirectsException(string message, Exception inner)