Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleanup exception messaging #409

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Conversation

jcosentino11
Copy link
Member

Issue #, if available:

Description of changes:

  • Have more specific exception messages in CreateIoTThingSession to disambiguate failures.
  • Make CloudServiceInteractionException a checked exception

Why is this change necessary:

How was this change tested:

Any additional information or context required to review the change:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -41,13 +41,13 @@
import javax.inject.Inject;

public interface IotAuthClient {
Optional<String> getActiveCertificateId(String certificatePem);
Optional<String> getActiveCertificateId(String certificatePem) throws CloudServiceInteractionException;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks out interface doesn't it? Isn't moquette using these methods? If it is, then this is going to break consumers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consumers just interact with ClientDevicesAuthServiceApi and AuthenticationExceptions from what i can see, so that should be fine?

@aws-greengrass aws-greengrass deleted a comment from github-actions bot Oct 31, 2023
@jcosentino11 jcosentino11 merged commit 2fd5357 into main Oct 31, 2023
4 checks passed
@jcosentino11 jcosentino11 deleted the auth-exception-cleanup branch October 31, 2023 19:05
MikeDombo pushed a commit that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants