ECRPublic / Client / exceptions / InvalidLayerPartException

InvalidLayerPartException#

class ECRPublic.Client.exceptions.InvalidLayerPartException#

The layer part size isn’t valid, or the first byte specified isn’t consecutive to the last byte of a previous layer part upload.

Example

try:
  ...
except client.exceptions.InvalidLayerPartException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'registryId': 'string',
    'repositoryName': 'string',
    'uploadId': 'string',
    'lastValidByteReceived': 123,
    'message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The layer part size isn’t valid, or the first byte specified isn’t consecutive to the last byte of a previous layer part upload.

    • registryId (string) –

      The Amazon Web Services account ID that’s associated with the layer part.

    • repositoryName (string) –

      The name of the repository.

    • uploadId (string) –

      The upload ID that’s associated with the layer part.

    • lastValidByteReceived (integer) –

      The position of the last byte of the layer part.

    • message (string) –

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.