jonsaw / amazon-cognito-identity-dart

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
204 stars 93 forks source link

Exception types in CognitoUser.getSession()? #82

Open hacker1024 opened 3 years ago

hacker1024 commented 3 years ago

In CognitoUser.getSession(), generic Exceptions are thrown. To differentiate between them, operations need to be done on the output from toString(), which isn't great.

Could these be changed to dedicated object for each cause?