Sonar fix
Issue-ID: APPC-1535
Change-Id: Ic980f53362a87cc8674252d6a8c4cb0cc50035c3
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
* Copyright (C) 2017 Amdocs
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
* Copyright (C) 2017 Amdocs
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
+ * Modifications Copyright (C) 2019 IBM
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
status = Integer.toString(code.getStatusCode());
} catch (Exception e) {
status = "500";
status = Integer.toString(code.getStatusCode());
} catch (Exception e) {
status = "500";
+ logger.error("Error while casting Integer to String", e);
}
svcLogic.setStatus(OUTCOME_FAILURE);
svcLogic.setAttribute("healthcheck.result.code", "200");
}
svcLogic.setStatus(OUTCOME_FAILURE);
svcLogic.setAttribute("healthcheck.result.code", "200");