Skip to content

Commit

Permalink
SWATCH-2994 Show meaningful message along with DefaultApiException
Browse files Browse the repository at this point in the history
Signed-off-by: Kartik Shah <karshah@redhat.com>
  • Loading branch information
kartikshahc committed Oct 2, 2024
1 parent 57b916b commit a902609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public void process(BillableUsageAggregate billableUsageAggregate) {
"Subscription recently terminated for billableUsageAggregateId={} orgId={} remittanceUUIDs={}",
billableUsageAggregate.getAggregateId(),
billableUsageAggregate.getAggregateKey().getOrgId(),
billableUsageAggregate.getRemittanceUuids());
billableUsageAggregate.getRemittanceUuids(),
e);
return;
} catch (AwsUsageContextLookupException e) {
emitErrorStatusOnUsage(billableUsageAggregate, BillableUsage.ErrorCode.USAGE_CONTEXT_LOOKUP);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public void process(BillableUsageAggregate billableUsageAggregate) {
"Subscription recently terminated for billableUsageAggregateId={} orgId={} remittanceUUIDs={}",
billableUsageAggregate.getAggregateId(),
billableUsageAggregate.getAggregateKey().getOrgId(),
billableUsageAggregate.getRemittanceUuids());
billableUsageAggregate.getRemittanceUuids(),
e);
return;
} catch (SubscriptionCanNotBeDeterminedException e) {
if (!isUsageDateValid(billableUsageAggregate)) {
Expand Down

0 comments on commit a902609

Please sign in to comment.