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

Introduce Custom errors for different scenarios #13

Open
mpurusottamc opened this issue Aug 2, 2022 · 0 comments
Open

Introduce Custom errors for different scenarios #13

mpurusottamc opened this issue Aug 2, 2022 · 0 comments
Assignees

Comments

@mpurusottamc
Copy link
Contributor

For different types of errors, custom errors should be returned from the library. For ex:

  1. AWS ARN is too short - ARNTooShortError
  2. Invalid ARN - InvalidARNError
  3. Partition is invalid - InvalidPartitionError
  4. Unknown or Invalid service - InvalidServiceError
  5. Unsupported resources - UnsupportedResourceError

All of these errors should inherit from ValueError

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

No branches or pull requests

2 participants