Skip to content

Commit c03d844

Browse files
authored
adding detailed exception and updating cdap versions (#52)
1 parent 24ed100 commit c03d844

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7676
<avro.version>1.8.2</avro.version>
7777
<commons.codec.version>1.4</commons.codec.version>
78-
<cdap.version>6.7.0-SNAPSHOT</cdap.version>
79-
<cdap.plugin.version>2.9.0-SNAPSHOT</cdap.plugin.version>
78+
<cdap.version>6.8.0-SNAPSHOT</cdap.version>
79+
<cdap.plugin.version>2.10.0-SNAPSHOT</cdap.plugin.version>
8080
<google.protobuf.java.version>3.19.4</google.protobuf.java.version>
8181
<guava.version>27.0.1-jre</guava.version>
8282
<httpclient.version>4.5.6</httpclient.version>
@@ -388,9 +388,9 @@
388388
<version>1.1.0</version>
389389
<configuration>
390390
<cdapArtifacts>
391-
<parent>system:cdap-data-pipeline[6.1.1,7.0.0-SNAPSHOT)
391+
<parent>system:cdap-data-pipeline[6.8.0-SNAPSHOT,7.0.0-SNAPSHOT)
392392
</parent>
393-
<parent>system:cdap-data-streams[6.1.1,7.0.0-SNAPSHOT)
393+
<parent>system:cdap-data-streams[6.8.0-SNAPSHOT,7.0.0-SNAPSHOT)
394394
</parent>
395395
</cdapArtifacts>
396396
</configuration>

src/main/java/io/cdap/plugin/dlp/SensitiveRecordDecrypt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void prepareRun(StageSubmitterContext context) throws Exception {
136136
throw new IllegalArgumentException(
137137
"Unable to validate template name. Ensure template ID matches the specified ID in DLP. List of defined " +
138138
"templates can be found at " +
139-
"https://console.cloud.google.com/security/dlp/landing/configuration/templates/inspect");
139+
"https://console.cloud.google.com/security/dlp/landing/configuration/templates/inspect", e);
140140
}
141141
}
142142

src/main/java/io/cdap/plugin/dlp/SensitiveRecordFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void prepareRun(StageSubmitterContext context) throws Exception {
145145
InspectTemplate template = client.getInspectTemplate(request);
146146
} catch (Exception e) {
147147
throw new IllegalArgumentException(
148-
"Unable to validate template name. Ensure template ID matches the specified ID in DLP");
148+
"Unable to validate template name. Ensure template ID matches the specified ID in DLP", e);
149149
}
150150
}
151151
}

src/main/java/io/cdap/plugin/dlp/SensitiveRecordRedaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void prepareRun(StageSubmitterContext context) throws Exception {
136136
InspectTemplate template = client.getInspectTemplate(request);
137137
} catch (Exception e) {
138138
throw new IllegalArgumentException(
139-
"Unable to validate template name. Ensure template ID matches the specified ID in DLP");
139+
"Unable to validate template name. Ensure template ID matches the specified ID in DLP", e);
140140
}
141141
}
142142

0 commit comments

Comments
 (0)