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
205 stars 93 forks source link

Exception types in CognitoUser.getSession()? #82

Open hacker1024 opened 4 years ago

hacker1024 commented 4 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?