Skip to content

Commit d39e7d7

Browse files
author
Zach Lowry
committed
Add exception for lower TCAPI versions.
1 parent 6b7352e commit d39e7d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/rusticisoftware/tincan/ContextActivities.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ public ObjectNode toJSONNode(TCAPIVersion version) {
167167
for (Activity element : this.getCategory()) {
168168
category.add(element.toJSONNode(version));
169169
}
170+
} else {
171+
throw new IncompatibleTCAPIVersion("Version " + version.toString() + " doesn't support the category context activity");
170172
}
171173
}
172174

0 commit comments

Comments
 (0)