summaryrefslogtreecommitdiffstats
path: root/main/src/main
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-03-15 13:28:08 -0400
committerJim Hahn <jrh3@att.com>2019-03-15 13:33:15 -0400
commitd51dde65937908d97ad057d1ebb2de9993ee6ed3 (patch)
treeeda93f03ae465aa3ed4a92750ce7b4fdbc225e99 /main/src/main
parentdddf89d93ba7482bbee05c6967e0065b9c4fbb0e (diff)
Add additional constructors to Exception classes
Modified test class to use auto-tester. Updated comments. Updated licenses. Change-Id: I993d0b78f31d15e6e6c35b701ed801616708628a Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/main')
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/PolicyPapException.java12
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/PolicyPapRuntimeException.java12
2 files changed, 22 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/PolicyPapException.java b/main/src/main/java/org/onap/policy/pap/main/PolicyPapException.java
index 6459d6bb..8e8b9b61 100644
--- a/main/src/main/java/org/onap/policy/pap/main/PolicyPapException.java
+++ b/main/src/main/java/org/onap/policy/pap/main/PolicyPapException.java
@@ -1,6 +1,7 @@
-/*-
+/*
* ============LICENSE_START=======================================================
* Copyright (C) 2019 Nordix Foundation.
+ * Modifications Copyright (C) 2019 AT&T Intellectual Property.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,6 +39,15 @@ public class PolicyPapException extends Exception {
}
/**
+ * Instantiates a new policy pap exception with a caused by exception.
+ *
+ * @param exp the exception that caused this exception to be thrown
+ */
+ public PolicyPapException(final Exception exp) {
+ super(exp);
+ }
+
+ /**
* Instantiates a new policy pap exception with a message and a caused by exception.
*
* @param message the message
diff --git a/main/src/main/java/org/onap/policy/pap/main/PolicyPapRuntimeException.java b/main/src/main/java/org/onap/policy/pap/main/PolicyPapRuntimeException.java
index e1df1b16..95b941f6 100644
--- a/main/src/main/java/org/onap/policy/pap/main/PolicyPapRuntimeException.java
+++ b/main/src/main/java/org/onap/policy/pap/main/PolicyPapRuntimeException.java
@@ -1,6 +1,7 @@
-/*-
+/*
* ============LICENSE_START=======================================================
* Copyright (C) 2019 Nordix Foundation.
+ * Modifications Copyright (C) 2019 AT&T Intellectual Property.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,6 +39,15 @@ public class PolicyPapRuntimeException extends RuntimeException {
}
/**
+ * Instantiates a new policy pap runtime exception with a caused by exception.
+ *
+ * @param exp the exception that caused this exception to be thrown
+ */
+ public PolicyPapRuntimeException(final Exception exp) {
+ super(exp);
+ }
+
+ /**
* Instantiates a new policy pap runtime exception with a message and a caused by exception.
*
* @param message the message