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

hazendaz / displaytag / 1753

12 Feb 2026 03:17AM UTC coverage: 77.321% (-0.01%) from 77.334%
1753

push

github

web-flow
Merge pull request #1102 from hazendaz/renovate/javax-support-logback-monorepo

Update dependency ch.qos.logback:logback-classic to v1.5.29 (javax-support)

1438 of 2003 branches covered (71.79%)

Branch coverage included in aggregate %.

4034 of 5074 relevant lines covered (79.5%)

0.8 hits per line

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

0.0
/displaytag/src/main/java/org/displaytag/exception/MissingAttributeException.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2002-2026 Fabrizio Giustina, the Displaytag team
6
 */
7
package org.displaytag.exception;
8

9
import org.apache.commons.lang3.ArrayUtils;
10
import org.displaytag.Messages;
11

12
/**
13
 * Exception thrown when a required attribute is not set. This is thrown when the user is required to set at least one
14
 * of multiple attributes and the check can't be enforced by the tld.
15
 */
16
public class MissingAttributeException extends BaseNestableJspTagException {
17

18
    /**
19
     * Serial ID.
20
     */
21
    private static final long serialVersionUID = 899149338534L;
22

23
    /**
24
     * list of tag attributes.
25
     */
26
    private final String[] attributes;
27

28
    /**
29
     * Constructor for MissingAttributeException.
30
     *
31
     * @param source
32
     *            Class where the exception is generated
33
     * @param attributeNames
34
     *            String attribute name
35
     */
36
    public MissingAttributeException(final Class<?> source, final String[] attributeNames) {
37
        super(source, Messages.getString("MissingAttributeException.msg", //$NON-NLS-1$
×
38
                new Object[] { ArrayUtils.toString(attributeNames) }));
×
39

40
        // copy attributes to allow them to be retrieved using getAttributeNames()
41
        this.attributes = ArrayUtils.clone(attributeNames);
×
42
    }
×
43

44
    /**
45
     * Gets the severity.
46
     *
47
     * @return SeverityEnum.ERROR
48
     *
49
     * @see org.displaytag.exception.BaseNestableJspTagException#getSeverity()
50
     * @see org.displaytag.exception.SeverityEnum
51
     */
52
    @Override
53
    public SeverityEnum getSeverity() {
54
        return SeverityEnum.ERROR;
×
55
    }
56

57
    /**
58
     * returns an array containing the names of missing attributes.
59
     *
60
     * @return String[] array of missing attributes
61
     */
62
    public String[] getAttributeNames() {
63
        return ArrayUtils.clone(this.attributes);
×
64
    }
65

66
}
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