33 */
44package com .imsweb .seerapi .client .staging ;
55
6+ import java .util .List ;
7+
68import com .fasterxml .jackson .annotation .JsonProperty ;
79import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
810
911/**
1012 * An error object
1113 */
12- @ JsonPropertyOrder ({"type" , "table" , "key" , "message" })
14+ @ JsonPropertyOrder ({"type" , "table" , "columns" , " key" , "message" })
1315public class StagingError {
1416
1517 private Type _type ;
1618 private String _table ;
19+ private List <String > _columns ;
1720 private String _key ;
1821 private String _message ;
1922
20- public enum Type {
21- // an input key was supplied that is not defined in the input definition
22- UNKNOWN_INPUT ,
23-
24- // a required input value was not contained in the input definition table
25- INVALID_REQUIRED_INPUT ,
26-
27- // a non-required input value was not contained in the input definition table
28- INVALID_NON_REQUIRED_INPUT ,
29-
30- // an input mapping from value did not exist
31- UNKNOWN_INPUT_MAPPING ,
32-
33- // an ERROR endpoint was hit during staging processing
34- STAGING_ERROR ,
35-
36- // a table was processed during staging and no match was found
37- MATCH_NOT_FOUND ,
38-
39- // a specified table does not exist
40- UNKNOWN_TABLE ,
41-
42- // processing a table ended up in an infinite loop due to JUMPs
43- INFINITE_LOOP ,
44-
45- // an output value was produced which was not contained in the output definition table
46- INVALID_OUTPUT
47- }
48-
4923 /**
5024 * Default constructor (required for Jackson)
5125 */
@@ -78,6 +52,15 @@ public void setTable(String table) {
7852 _table = table ;
7953 }
8054
55+ @ JsonProperty ("columns" )
56+ public List <String > getColumns () {
57+ return _columns ;
58+ }
59+
60+ public void setColumns (List <String > columns ) {
61+ _columns = columns ;
62+ }
63+
8164 @ JsonProperty ("key" )
8265 public String getKey () {
8366 return _key ;
@@ -96,4 +79,33 @@ public void setMessage(String message) {
9679 _message = message ;
9780 }
9881
82+ public enum Type {
83+ // an input key was supplied that is not defined in the input definition
84+ UNKNOWN_INPUT ,
85+
86+ // a required input value was not contained in the input definition table
87+ INVALID_REQUIRED_INPUT ,
88+
89+ // a non-required input value was not contained in the input definition table
90+ INVALID_NON_REQUIRED_INPUT ,
91+
92+ // an input mapping from value did not exist
93+ UNKNOWN_INPUT_MAPPING ,
94+
95+ // an ERROR endpoint was hit during staging processing
96+ STAGING_ERROR ,
97+
98+ // a table was processed during staging and no match was found
99+ MATCH_NOT_FOUND ,
100+
101+ // a specified table does not exist
102+ UNKNOWN_TABLE ,
103+
104+ // processing a table ended up in an infinite loop due to JUMPs
105+ INFINITE_LOOP ,
106+
107+ // an output value was produced which was not contained in the output definition table
108+ INVALID_OUTPUT
109+ }
110+
99111}
0 commit comments