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

FIWARE / contract-management / #104

01 Oct 2026 07:34AM UTC coverage: 4.489% (+0.7%) from 3.796%
#104

Pull #28

vramperez
Remove unused exception constructors, explain the handler defer

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Pull Request #28: Add failure reasons, downstream error descriptions and configurable log output

218 of 379 new or added lines in 33 files covered. (57.52%)

9 existing lines in 6 files now uncovered.

1606 of 35773 relevant lines covered (4.49%)

0.04 hits per line

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

42.86
/src/main/java/org/fiware/iam/exception/ContractManagementException.java
1
package org.fiware.iam.exception;
2

3
import io.micronaut.core.annotation.Nullable;
4
import lombok.Getter;
5

6
/**
7
 * Base of all expected failures of the contract management. Its message carries a {@link FailureReason} code and the
8
 * ids involved; it is logged once, with its stack trace, at the place that handles it.
9
 */
10
@Getter
11
public abstract class ContractManagementException extends RuntimeException {
12

13
        @Nullable
14
        private final FailureReason reason;
15

16
        protected ContractManagementException(String message) {
NEW
17
                this(null, message, null);
×
NEW
18
        }
×
19

20
        protected ContractManagementException(String message, Throwable cause) {
NEW
21
                this(null, message, cause);
×
NEW
22
        }
×
23

24
        protected ContractManagementException(@Nullable FailureReason reason, String message, @Nullable Throwable cause) {
25
                super(reason == null ? message : reason.format(message), cause);
1 ✔
26
                this.reason = reason;
1 ✔
27
        }
1 ✔
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc