Skip to content

Commit

Permalink
SWATCH-2994 Show meaningful message along with DefaultApiException (#…
Browse files Browse the repository at this point in the history
…3820)

<!-- Replace XXXX with the issue number. Issue will be auto-linked -->
Jira issue: SWATCH-2994

## Description
<!-- Provide a description of this PR. Try to provide answers to "what",
"how",
and "why" -->

## Testing
<!--
When possible, please use commands a developer can directly paste or
modify
-->
IQE Test MR: <!-- IQE MR link here -->

### Setup
<!-- Add any steps required to set up the test case -->
1.
1.

### Steps
<!-- Enter each step of the test below -->
1.
1.

### Verification
<!-- Enter the steps needed to verify the test passed -->
1.
1.
  • Loading branch information
kartikshahc authored Oct 2, 2024
2 parents 57b916b + a902609 commit 7755113
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 7755113

Please sign in to comment.