summaryrefslogtreecommitdiffstats
path: root/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java')
-rw-r--r--nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java b/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java
index 3bd715e4..b4e59151 100644
--- a/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java
+++ b/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/CbamUtils.java
@@ -57,28 +57,28 @@ public class CbamUtils {
}
/**
- * Logs and throws a runtime exception
+ * Logs and returns a runtime exception
*
* @param logger the logger
* @param msg the error message
* @param e the exception to be wrapped
* @return never reached (runtime exception is thrown)
*/
- public static RuntimeException fatalFailure(Logger logger, String msg, Exception e) {
+ public static RuntimeException buildFatalFailure(Logger logger, String msg, Exception e) {
logger.error(msg, e);
- throw new OperationMustBeAborted(e, msg);
+ return new OperationMustBeAborted(e, msg);
}
/**
- * Logs and throws a runtime exception
+ * Logs and returns a runtime exception
*
* @param logger the logger
* @param msg the error message
* @return never reached (runtime exception is thrown)
*/
- public static RuntimeException fatalFailure(Logger logger, String msg) {
+ public static RuntimeException buildFatalFailure(Logger logger, String msg) {
logger.error(msg);
- throw new OperationMustBeAborted(msg);
+ return new OperationMustBeAborted(msg);
}
private static class OperationMustBeAborted extends RuntimeException {