Class CognitoIdentityProviderException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\CognitoIdentityProvider\Exception\CognitoIdentityProviderException
- Namespace: Aws\CognitoIdentityProvider\Exception
- Located at CognitoIdentityProvider/Exception/CognitoIdentityProviderException.php
Represents an error interacting with the Amazon Cognito Identity Provider service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
AliasExistsException
[ 'message' => '<string>', ]
Description
This exception is thrown when a user tries to confirm the account with an email or phone number that has already been supplied as an alias from a different account. This exception tells user that an account with this email or phone already exists.
Members
CodeDeliveryFailureException
[ 'message' => '<string>', ]
Description
This exception is thrown when a verification code fails to deliver successfully.
Members
CodeMismatchException
[ 'message' => '<string>', ]
Description
This exception is thrown if the provided code does not match what the server was expecting.
Members
ConcurrentModificationException
[ 'message' => '<string>', ]
Description
This exception is thrown if two or more modifications are happening concurrently.
Members
DuplicateProviderException
[ 'message' => '<string>', ]
Description
This exception is thrown when the provider is already supported by the user pool.
Members
EnableSoftwareTokenMFAException
[ 'message' => '<string>', ]
Description
This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA).
Members
ExpiredCodeException
[ 'message' => '<string>', ]
Description
This exception is thrown if a code has expired.
Members
GroupExistsException
[ 'message' => '<string>', ]
Description
This exception is thrown when Amazon Cognito encounters a group that already exists in the user pool.
Members
InternalErrorException
[ 'message' => '<string>', ]
Description
This exception is thrown when Amazon Cognito encounters an internal error.
Members
InvalidEmailRoleAccessPolicyException
[ 'message' => '<string>', ]
Description
This exception is thrown when Amazon Cognito is not allowed to use your email identity. HTTP status code: 400.
Members
InvalidLambdaResponseException
[ 'message' => '<string>', ]
Description
This exception is thrown when the Amazon Cognito service encounters an invalid AWS Lambda response.
Members
InvalidOAuthFlowException
[ 'message' => '<string>', ]
Description
This exception is thrown when the specified OAuth flow is invalid.
Members
InvalidParameterException
[ 'message' => '<string>', ]
Description
This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
Members
InvalidPasswordException
[ 'message' => '<string>', ]
Description
This exception is thrown when the Amazon Cognito service encounters an invalid password.
Members
InvalidSmsRoleAccessPolicyException
[ 'message' => '<string>', ]
Description
This exception is returned when the role provided for SMS configuration does not have permission to publish using Amazon SNS.
Members
InvalidSmsRoleTrustRelationshipException
[ 'message' => '<string>', ]
Description
This exception is thrown when the trust relationship is invalid for the role provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool.
Members
InvalidUserPoolConfigurationException
[ 'message' => '<string>', ]
Description
This exception is thrown when the user pool configuration is invalid.
Members
LimitExceededException
[ 'message' => '<string>', ]
Description
This exception is thrown when a user exceeds the limit for a requested AWS resource.
Members
MFAMethodNotFoundException
[ 'message' => '<string>', ]
Description
This exception is thrown when Amazon Cognito cannot find a multi-factor authentication (MFA) method.
Members
NotAuthorizedException
[ 'message' => '<string>', ]
Description
This exception is thrown when a user is not authorized.
Members
PasswordResetRequiredException
[ 'message' => '<string>', ]
Description
This exception is thrown when a password reset is required.
Members
PreconditionNotMetException
[ 'message' => '<string>', ]
Description
This exception is thrown when a precondition is not met.
Members
ResourceNotFoundException
[ 'message' => '<string>', ]
Description
This exception is thrown when the Amazon Cognito service cannot find the requested resource.
Members
ScopeDoesNotExistException
[ 'message' => '<string>', ]
Description
This exception is thrown when the specified scope does not exist.
Members
SoftwareTokenMFANotFoundException
[ 'message' => '<string>', ]
Description
This exception is thrown when the software token TOTP multi-factor authentication (MFA) is not enabled for the user pool.
Members
TooManyFailedAttemptsException
[ 'message' => '<string>', ]
Description
This exception is thrown when the user has made too many failed attempts for a given action (e.g., sign in).
Members
TooManyRequestsException
[ 'message' => '<string>', ]
Description
This exception is thrown when the user has made too many requests for a given operation.
Members
UnexpectedLambdaException
[ 'message' => '<string>', ]
Description
This exception is thrown when the Amazon Cognito service encounters an unexpected exception with the AWS Lambda service.
Members
UnsupportedIdentityProviderException
[ 'message' => '<string>', ]
Description
This exception is thrown when the specified identifier is not supported.
Members
UnsupportedUserStateException
[ 'message' => '<string>', ]
Description
The request failed because the user is in an unsupported state.
Members
UserImportInProgressException
[ 'message' => '<string>', ]
Description
This exception is thrown when you are trying to modify a user pool while a user import job is in progress for that pool.
Members
UserLambdaValidationException
[ 'message' => '<string>', ]
Description
This exception is thrown when the Amazon Cognito service encounters a user validation exception with the AWS Lambda service.
Members
UserNotConfirmedException
[ 'message' => '<string>', ]
Description
This exception is thrown when a user is not confirmed successfully.
Members
UserNotFoundException
[ 'message' => '<string>', ]
Description
This exception is thrown when a user is not found.
Members
UserPoolAddOnNotEnabledException
[ 'message' => '<string>', ]
Description
This exception is thrown when user pool add-ons are not enabled.
Members
UserPoolTaggingException
[ 'message' => '<string>', ]
Description
This exception is thrown when a user pool tag cannot be set or updated.
Members
UsernameExistsException
[ 'message' => '<string>', ]