summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception')
-rw-r--r--mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/BlueprintException.java10
-rw-r--r--mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/ComponentSpecException.java10
-rw-r--r--mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/DatabasesNotFoundException.java10
-rw-r--r--mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/FixesException.java10
4 files changed, 31 insertions, 9 deletions
diff --git a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/BlueprintException.java b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/BlueprintException.java
index f6ed5c7..747e327 100644
--- a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/BlueprintException.java
+++ b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/BlueprintException.java
@@ -28,15 +28,21 @@ package org.onap.blueprintgenerator.exception;
* @date 10/16/2020
* Application: DCAE/ONAP - Blueprint Generator
* Common Module: Used by both ONAP and DCAE Blueprint Applications
- * Exception: For Blueprint
+ * Exception: To handle error messages for Blueprint
*/
-public class BlueprintException extends RuntimeException{
+public class BlueprintException extends RuntimeException {
+ /**
+ * Handles Blueprint Exception for Error Message
+ */
public BlueprintException(String errorMessage) {
super(errorMessage);
}
+ /**
+ * Handles Blueprint Exception for Error Message and Error
+ */
public BlueprintException(String errorMessage, Throwable err) {
super(errorMessage, err);
}
diff --git a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/ComponentSpecException.java b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/ComponentSpecException.java
index ff0270e..e24af19 100644
--- a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/ComponentSpecException.java
+++ b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/ComponentSpecException.java
@@ -28,15 +28,21 @@ package org.onap.blueprintgenerator.exception;
* @date 10/16/2020
* Application: DCAE/ONAP - Blueprint Generator
* Common Module: Used by both ONAP and DCAE Blueprint Applications
- * Exception: For ComponentSpec
+ * Exception: To handle error messages for ComponentSpec
*/
-public class ComponentSpecException extends RuntimeException{
+public class ComponentSpecException extends RuntimeException {
+ /**
+ * Handles Component Specification Exception for Error Message
+ */
public ComponentSpecException(String errorMessage) {
super(errorMessage);
}
+ /**
+ * Handles Component Specification Exception for Error Message and Error
+ */
public ComponentSpecException(String errorMessage, Throwable err) {
super(errorMessage, err);
}
diff --git a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/DatabasesNotFoundException.java b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/DatabasesNotFoundException.java
index 423da79..2a441bd 100644
--- a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/DatabasesNotFoundException.java
+++ b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/DatabasesNotFoundException.java
@@ -28,11 +28,15 @@ package org.onap.blueprintgenerator.exception;
* @date 10/16/2020
* Application: DCAE/ONAP - Blueprint Generator
* Common Module: Used by both ONAP and DCAE Blueprint Applications
- * Exception: For Databases Not Found
+ * Exception: To handle error messages for Databases Not Found
*/
public class DatabasesNotFoundException extends RuntimeException {
- public DatabasesNotFoundException(String message) { super(message);}
-
+ /**
+ * Handles Databases NotFound Exception for Error Message
+ */
+ public DatabasesNotFoundException(String message) {
+ super(message);
+ }
}
diff --git a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/FixesException.java b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/FixesException.java
index aa81ede..87c46b5 100644
--- a/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/FixesException.java
+++ b/mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception/FixesException.java
@@ -28,15 +28,21 @@ package org.onap.blueprintgenerator.exception;
* @date 10/16/2020
* Application: DCAE/ONAP - Blueprint Generator
* Common Module: Used by both ONAP and DCAE Blueprint Applications
- * Exception: For Fixes
+ * Exception: To handle error messages for Fixes
*/
-public class FixesException extends RuntimeException{
+public class FixesException extends RuntimeException {
+ /**
+ * Handles Fixes NotFound Exception for Error Message
+ */
public FixesException(String errorMessage) {
super(errorMessage);
}
+ /**
+ * Handles Fixes Exception for Error Message and Error
+ */
public FixesException(String errorMessage, Throwable err) {
super(errorMessage, err);
}