Class EcrException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\Ecr\Exception\EcrException
- Namespace: Aws\Ecr\Exception
- Located at Ecr/Exception/EcrException.php
Represents an error interacting with the Amazon EC2 Container Registry 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
EmptyUploadException
[ 'message' => '<string>', ]
Description
The specified layer upload does not contain any layer parts.
Members
ImageAlreadyExistsException
[ 'message' => '<string>', ]
Description
The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.
Members
ImageDigestDoesNotMatchException
[ 'message' => '<string>', ]
Description
The specified image digest does not match the digest that Amazon ECR calculated for the image.
Members
ImageNotFoundException
[ 'message' => '<string>', ]
Description
The image requested does not exist in the specified repository.
Members
ImageTagAlreadyExistsException
[ 'message' => '<string>', ]
Description
The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.
Members
InvalidLayerException
[ 'message' => '<string>', ]
Description
The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified.
Members
InvalidLayerPartException
[ 'lastValidByteReceived' => <integer>, 'message' => '<string>', 'registryId' => '<string>', 'repositoryName' => '<string>', 'uploadId' => '<string>', ]
Description
The layer part size is not valid, or the first byte specified is not consecutive to the last byte of a previous layer part upload.
Members
- lastValidByteReceived
-
- Type: long (int|float)
The last valid byte received from the layer part upload that is associated with the exception.
- message
-
- Type: string
The error message associated with the exception.
- registryId
-
- Type: string
The registry ID associated with the exception.
- repositoryName
-
- Type: string
The repository name associated with the exception.
- uploadId
-
- Type: string
The upload ID associated with the exception.
InvalidParameterException
[ 'message' => '<string>', ]
Description
The specified parameter is invalid. Review the available parameters for the API request.
Members
InvalidTagParameterException
[ 'message' => '<string>', ]
Description
An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Members
KmsException
[ 'kmsError' => '<string>', 'message' => '<string>', ]
Description
The operation failed due to a KMS exception.
Members
LayerAlreadyExistsException
[ 'message' => '<string>', ]
Description
The image layer already exists in the associated repository.
Members
LayerInaccessibleException
[ 'message' => '<string>', ]
Description
The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time.
Members
LayerPartTooSmallException
[ 'message' => '<string>', ]
Description
Layer parts must be at least 5 MiB in size.
Members
LayersNotFoundException
[ 'message' => '<string>', ]
Description
The specified layers could not be found, or the specified layer is not valid for this repository.
Members
LifecyclePolicyNotFoundException
[ 'message' => '<string>', ]
Description
The lifecycle policy could not be found, and no policy is set to the repository.
Members
LifecyclePolicyPreviewInProgressException
[ 'message' => '<string>', ]
Description
The previous lifecycle policy preview request has not completed. Wait and try again.
Members
LifecyclePolicyPreviewNotFoundException
[ 'message' => '<string>', ]
LimitExceededException
[ 'message' => '<string>', ]
Description
The operation did not succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR service quotas in the Amazon Elastic Container Registry User Guide.
Members
PullThroughCacheRuleAlreadyExistsException
[ 'message' => '<string>', ]
Description
A pull through cache rule with these settings already exists for the private registry.
Members
PullThroughCacheRuleNotFoundException
[ 'message' => '<string>', ]
Description
The pull through cache rule was not found. Specify a valid pull through cache rule and try again.
Members
ReferencedImagesNotFoundException
[ 'message' => '<string>', ]
Description
The manifest list is referencing an image that does not exist.
Members
RegistryPolicyNotFoundException
[ 'message' => '<string>', ]
RepositoryAlreadyExistsException
[ 'message' => '<string>', ]
Description
The specified repository already exists in the specified registry.
Members
RepositoryNotEmptyException
[ 'message' => '<string>', ]
Description
The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force
parameter.
Members
RepositoryNotFoundException
[ 'message' => '<string>', ]
Description
The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.
Members
RepositoryPolicyNotFoundException
[ 'message' => '<string>', ]
Description
The specified repository and registry combination does not have an associated repository policy.
Members
ScanNotFoundException
[ 'message' => '<string>', ]
Description
The specified image scan could not be found. Ensure that image scanning is enabled on the repository and try again.
Members
ServerException
[ 'message' => '<string>', ]
Description
These errors are usually caused by a server-side issue.
Members
TooManyTagsException
[ 'message' => '<string>', ]
Description
The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.
Members
UnsupportedImageTypeException
[ 'message' => '<string>', ]
UnsupportedUpstreamRegistryException
[ 'message' => '<string>', ]
UploadNotFoundException
[ 'message' => '<string>', ]
Description
The upload could not be found, or the specified upload ID is not valid for this repository.
Members
ValidationException
[ 'message' => '<string>', ]