diff options
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java b/main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java index ccdebc33..c4b7b4a4 100644 --- a/main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java +++ b/main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java @@ -33,6 +33,7 @@ import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response.ResponseBuilder; +import org.onap.policy.models.base.PfModelException; /** * Version v1 common superclass to provide REST endpoints for PAP component. @@ -117,4 +118,12 @@ public class PapRestControllerV1 { return respBuilder.header(REQUEST_ID_NAME, requestId); } + + /** + * Functions that throw {@link PfModelException}. + */ + @FunctionalInterface + public static interface RunnableWithPfEx { + public void run() throws PfModelException; + } } |