diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-07-02 16:19:59 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-07-02 16:20:03 -0500 |
commit | feab2592f964ff68e04812aeafc807b4ce71048c (patch) | |
tree | bf563be56bd341eb2a3da6939e57830ff205e89d /cadi | |
parent | 84fc74efbdd3b8343aaeba13df42accefe5493db (diff) |
update Approvals from Testing
Issue-ID: AAF-857
Change-Id: Ic7780678991f5d3f25f2634d1a8b15cc03f62592
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi')
-rw-r--r-- | cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/ErrMessage.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/ErrMessage.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/ErrMessage.java index 55421262..42efd89b 100644 --- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/ErrMessage.java +++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/ErrMessage.java @@ -88,9 +88,13 @@ public class ErrMessage { public StringBuilder toMsg(StringBuilder sb, Error err) { sb.append(err.getMessageId()); sb.append(' '); - String[] vars = new String[err.getVariables().size()]; + Object[] vars = new String[err.getVariables().size()]; err.getVariables().toArray(vars); Vars.convert(sb, err.getText(),vars); return sb; } + + public Error getError(Future<?> future) throws APIException { + return errDF.newData().in(TYPE.JSON).load(future.body()).asObject(); + } } |