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

FIWARE / trusted-issuers-list / 79

13 May 2026 10:47AM UTC coverage: 87.146% (+2.6%) from 84.584%
79

Pull #26

github

web-flow
Delete IMPLEMENTATION_PLAN.md
Pull Request #26: enable v5 api

147 of 187 branches covered (78.61%)

Branch coverage included in aggregate %.

497 of 548 new or added lines in 16 files covered. (90.69%)

592 of 661 relevant lines covered (89.56%)

0.9 hits per line

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

0.0
/src/main/java/org/fiware/iam/exception/CatchAllExceptionHandler.java
1
/*
2
 * Copyright 2023 FIWARE Foundation e.V. and/or its affiliates
3
 * and other contributors as indicated by the @author tags.
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License");
6
 * you may not use this file except in compliance with the License.
7
 * You may obtain a copy of the License at
8
 *
9
 * http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 */
17
package org.fiware.iam.exception;
18

19
import io.micronaut.context.annotation.Requires;
20
import io.micronaut.http.HttpRequest;
21
import io.micronaut.http.HttpResponse;
22
import io.micronaut.http.HttpStatus;
23
import io.micronaut.http.annotation.Produces;
24
import io.micronaut.http.server.exceptions.ExceptionHandler;
25
import jakarta.inject.Singleton;
26
import lombok.extern.slf4j.Slf4j;
27
import org.fiware.iam.tir.model.ProblemDetailsVO;
28

29
/**
30
 * Handler to catch and log all unexpected exceptions and translate them into a proper 500 response.
31
 */
32
@Produces
33
@Singleton
34
@Requires(classes = {Exception.class, ExceptionHandler.class})
35
@Slf4j
×
NEW
36
public class CatchAllExceptionHandler
×
37
    implements ExceptionHandler<Exception, HttpResponse<ProblemDetailsVO>> {
38

39
  @Override
40
  public HttpResponse<ProblemDetailsVO> handle(HttpRequest request, Exception exception) {
NEW
41
    log.warn(
×
42
        "Received unexpected exception {} for request {}.",
NEW
43
        exception.getMessage(),
×
44
        request,
45
        exception);
46

NEW
47
    return HttpResponse.status(HttpStatus.INTERNAL_SERVER_ERROR)
×
NEW
48
        .body(
×
49
            new ProblemDetailsVO()
NEW
50
                .status(HttpStatus.INTERNAL_SERVER_ERROR.getCode())
×
NEW
51
                .detail("Request could not be answered due to an unexpected internal error.")
×
NEW
52
                .title(HttpStatus.INTERNAL_SERVER_ERROR.getReason()));
×
53
  }
54
}
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