-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dillon Nys
committed
Jul 26, 2021
1 parent
5143491
commit 3acc5cb
Showing
7 changed files
with
51 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...y_auth_plugin_interface/lib/src/Exceptions/invalid_user_pool_configuration_exception.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'package:amplify_auth_plugin_interface/amplify_auth_plugin_interface.dart'; | ||
|
||
/// {@template invalid_user_pool_configuration_exception} | ||
/// Thrown when a user pool is is not configured for the requested action. | ||
/// {@endtemplate} | ||
class InvalidUserPoolConfigurationException extends AuthException { | ||
/// {@macro invalid_user_pool_configuration_exception} | ||
const InvalidUserPoolConfigurationException({ | ||
required String message, | ||
String? recoverySuggestion, | ||
String? underlyingException, | ||
}) : super( | ||
message, | ||
recoverySuggestion: recoverySuggestion, | ||
underlyingException: underlyingException, | ||
); | ||
|
||
static InvalidUserPoolConfigurationException fromMap(Map map) => | ||
InvalidUserPoolConfigurationException( | ||
message: map['message'] as String, | ||
recoverySuggestion: map['recoverySuggestion'] as String?, | ||
underlyingException: map['underlyingException'] as String?, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters