Skip to content

Commit e58e0fc

Browse files
Merge pull request #122 from ExpediaGroup/fix/pass-through-cause
fix: Pass through cause in JsonMetaStoreEventSerDe
2 parents d5cfa4e + 0dd57b6 commit e58e0fc

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## 8.1.9 - 2025-07-07
7+
### Changed
8+
- Update exceptions thrown from `JsonMetaStoreEventSerDe` to include the cause.
9+
610
## 8.1.8 - 2025-05-22
711
### Changed
812
- Update metrics to use micrometer instead of Codahale in glue-event-listener.

apiary-metastore-events/apiary-hive-events/src/main/java/com/expediagroup/apiary/extensions/events/metastore/io/jackson/JsonMetaStoreEventSerDe.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public byte[] marshal(ApiaryListenerEvent listenerEvent) throws SerDeException {
7171
}
7272
return bytes;
7373
} catch (IOException e) {
74-
throw new SerDeException("Unable to marshal event " + listenerEvent);
74+
throw new SerDeException("Unable to marshal event " + listenerEvent, e);
7575
}
7676
}
7777

@@ -92,7 +92,7 @@ public <T extends ApiaryListenerEvent> T unmarshal(byte[] payload) throws SerDeE
9292
log.debug("Unmarshalled event is: {}", event);
9393
return event;
9494
} catch (Exception e) {
95-
throw new SerDeException("Unable to unmarshal event from payload");
95+
throw new SerDeException("Unable to unmarshal event from payload", e);
9696
}
9797
}
9898

0 commit comments

Comments
 (0)