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

oracle / opengrok / #3669

01 Nov 2023 10:10AM UTC coverage: 75.13% (-0.03%) from 75.16%
#3669

push

web-flow
Fix Sonar codesmell issues (#4460)

Signed-off-by: Gino Augustine <ginoaugustine@gmail.com>

308 of 308 new or added lines in 27 files covered. (100.0%)

44029 of 58604 relevant lines covered (75.13%)

0.75 hits per line

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

0.0
/opengrok-web/src/main/java/org/opengrok/web/WebappError.java
1
/*
2
 * CDDL HEADER START
3
 *
4
 * The contents of this file are subject to the terms of the
5
 * Common Development and Distribution License (the "License").
6
 * You may not use this file except in compliance with the License.
7
 *
8
 * See LICENSE.txt included in this distribution for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing Covered Code, include this CDDL HEADER in each
12
 * file and include the License file at LICENSE.txt.
13
 * If applicable, add the following below this CDDL HEADER, with the
14
 * fields enclosed by brackets "[]" replaced with your own identifying
15
 * information: Portions Copyright [yyyy] [name of copyright owner]
16
 *
17
 * CDDL HEADER END
18
 */
19

20
/*
21
 * Copyright (c) 2023, Oracle and/or its affiliates.
22
 * Portions Copyright (c) 2023, Gino Augustine <gino.augustine@oracle.com>.
23
 */
24
package org.opengrok.web;
25

26
/**
27
 * Error thrown if there is any error while initializing opengrok web app.
28
 * @author Gino Augustine
29
 */
30
public class WebappError extends Error {
31
    private static final long serialVersionUID = 1L;
32
    /**
33
     * Constructs a new web app context init error with the specified detail message.  The
34
     * cause is not initialized, and may subsequently be initialized by
35
     * a call to {@link #initCause}.
36
     *
37
     * @param message the detail message. The detail message is saved for
38
     *                later retrieval by the {@link #getMessage()} method.
39
     */
40
    public WebappError(String message) {
41
        super(message);
×
42
    }
×
43

44
    /**
45
     * Constructs a new web app context init error with the specified detail message and
46
     * cause.  <p>Note that the detail message associated with
47
     * {@code cause} is <i>not</i> automatically incorporated in
48
     * this error's detail message.
49
     *
50
     * @param message the detail message (which is saved for later retrieval
51
     *                by the {@link #getMessage()} method).
52
     * @param cause   the cause (which is saved for later retrieval by the
53
     *                {@link #getCause()} method).  (A {@code null} value is
54
     *                permitted, and indicates that the cause is nonexistent or
55
     *                unknown.)
56
     */
57
    public WebappError(String message, Throwable cause) {
58
        super(message, cause);
×
59
    }
×
60
}
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