diff options
author | Ravi Mantena <rx908f@att.com> | 2020-12-21 11:31:55 -0500 |
---|---|---|
committer | Ravi Mantena <rx908f@att.com> | 2020-12-21 11:32:34 -0500 |
commit | a520d00e005db1b232b9dae0c70d4dc5d73b33e1 (patch) | |
tree | 9c0e16ce5fab9bc12da138c4d8c613bcff54516b /mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception | |
parent | 2f551ba584dbb70568a69144b39e6da7c55c517f (diff) |
BpGen refactor Code Quality Issue-ID: DCAEGEN2-2502
Issue-ID: DCAEGEN2-2502
Change-Id: If6e08f0bb88c9039fb27898d50d2645f79175ba4
Signed-off-by: Ravi Mantena <rx908f@att.com>
Diffstat (limited to 'mod/bpgenerator/common/src/main/java/org/onap/blueprintgenerator/exception')
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); } |