Skip to content

Commit abbed0e

Browse files
committed
Support new columns field in staging error
1 parent 4d7540d commit abbed0e

File tree

5 files changed

+48
-36
lines changed

5 files changed

+48
-36
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ Download [the latest JAR][1] or grab via Maven:
2929
<dependency>
3030
<groupId>com.imsweb</groupId>
3131
<artifactId>seerapi-client-java</artifactId>
32-
<version>3.10</version>
32+
<version>3.11</version>
3333
</dependency>
3434
```
3535

3636
or via Gradle:
3737

3838
```
39-
compile 'com.imsweb:seerapi-client-java:3.10'
39+
compile 'com.imsweb:seerapi-client-java:3.11'
4040
```
4141

4242
## Usage

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
group = 'com.imsweb'
13-
version = '3.10'
13+
version = '3.11'
1414
description = 'Java client library for SEER*API'
1515

1616
println "Starting build using ${Jvm.current()}"
@@ -62,7 +62,7 @@ findbugs {
6262
}
6363

6464
task wrapper(type: Wrapper) {
65-
gradleVersion = '4.7'
65+
gradleVersion = '4.8.1'
6666
}
6767

6868
modifyPom {

gradle/wrapper/gradle-wrapper.jar

4 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Apr 18 09:06:34 EDT 2018
1+
#Mon Jul 09 14:37:08 EDT 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip

src/main/java/com/imsweb/seerapi/client/staging/StagingError.java

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,23 @@
33
*/
44
package com.imsweb.seerapi.client.staging;
55

6+
import java.util.List;
7+
68
import com.fasterxml.jackson.annotation.JsonProperty;
79
import 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"})
1315
public 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

Comments
 (0)