• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / httpunit / 755

14 Feb 2026 07:14PM UTC coverage: 80.526%. Remained the same
755

push

github

hazendaz
[ci] Fix badge

3213 of 4105 branches covered (78.27%)

Branch coverage included in aggregate %.

8245 of 10124 relevant lines covered (81.44%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.0
/src/main/java/com/meterware/httpunit/RecursiveRedirectionException.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2000-2026 Russell Gold
6
 * Copyright 2021-2000 hazendaz
7
 */
8
package com.meterware.httpunit;
9

10
import java.net.URL;
11

12
/**
13
 * Class used to indicate when a request to a resource resulted in an HTTP redirect response that lead to a recursive
14
 * loop of redirections.
15
 */
16
public class RecursiveRedirectionException extends RuntimeException {
17

18
    /** The Constant serialVersionUID. */
19
    private static final long serialVersionUID = 1L;
20

21
    /** The url. */
22
    private URL url;
23

24
    /**
25
     * Create a new <code>RecursiveRedirectionException</code> with the specified URL and cause.
26
     *
27
     * @param url
28
     *            the {@link URL}that caused the recursive loop to be detected
29
     * @param cause
30
     *            the cause (which is saved for later retrieval by the {@link #getCause()}method). (A null value is
31
     *            permitted, and indicates that the cause is nonexistent or unknown.)
32
     */
33
    public RecursiveRedirectionException(URL url, Throwable cause) {
34
        super(cause);
×
35
        this.url = url;
×
36
    }
×
37

38
    /**
39
     * Create a new <code>RecursiveRedirectionException</code> with the specified URL and detail message.
40
     *
41
     * @param url
42
     *            the <code>URL</code> that caused the recursive loop to be detected. The URL is saved for later
43
     *            retrieval by {@link #getURL()}
44
     * @param message
45
     *            the detail message. The detail message is saved for later retrieval by {@link #getMessage()}
46
     */
47
    public RecursiveRedirectionException(URL url, String message) {
48
        super(message);
1✔
49
        this.url = url;
1✔
50
    }
1✔
51

52
    /**
53
     * Create a new <code>RecursiveRedirectionException</code> with the specified URL, detail message and cause.
54
     *
55
     * @param url
56
     *            the <code>URL</code> that caused the recursive loop to be detected. The URL is saved for later
57
     *            retrieval by {@link #getURL()}
58
     * @param message
59
     *            the detail message. The detail message is saved for later retrieval by {@link #getMessage()}
60
     * @param cause
61
     *            the cause (which is saved for later retrieval by the {@link #getCause()}method). (A null value is
62
     *            permitted, and indicates that the cause is nonexistent or unknown.)
63
     */
64
    public RecursiveRedirectionException(URL url, String message, Throwable cause) {
65
        super(message, cause);
×
66
        this.url = url;
×
67
    }
×
68

69
    /**
70
     * Returns the URL that caused this exception to be thrown.
71
     *
72
     * @return the <code>URL</code> that gave rise to this Exception
73
     */
74
    public URL getURL() {
75
        return url;
×
76
    }
77
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc