• 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

0.0
/src/main/java/com/meterware/httpunit/javascript/events/EventException.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.javascript.events;
9

10
/**
11
 * Event operations may throw an EventException as specified in their method descriptions.
12
 */
13
public class EventException extends Exception {
14

15
    /** The Constant serialVersionUID. */
16
    private static final long serialVersionUID = 1L;
17
    /**
18
     * An integer indicating the type of error generated.
19
     */
20
    private final short code;
21

22
    /**
23
     * Creates new EventException instance.
24
     *
25
     * @param codeArg
26
     *            An integer indicating the type of error generated.
27
     */
28
    public EventException(short codeArg) {
×
29
        this.code = codeArg;
×
30
    }
×
31

32
    /**
33
     * An integer indicating the type of error generated.
34
     *
35
     * @return the code
36
     */
37
    public short getCode() {
38
        return code;
×
39
    }
40

41
    /**
42
     * {@inheritDoc}
43
     */
44
    @Override
45
    public String getMessage() {
46
        return Short.toString(code);
×
47
    }
48
}
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