KinesisVideoArchivedMedia / Client / exceptions / ResourceNotFoundException

ResourceNotFoundException#

class KinesisVideoArchivedMedia.Client.exceptions.ResourceNotFoundException#

GetImages will throw this error when Kinesis Video Streams can’t find the stream that you specified.

GetHLSStreamingSessionURL and GetDASHStreamingSessionURL throw this error if a session with a PlaybackMode of ON_DEMAND or LIVE_REPLAY``is requested for a stream that has no fragments within the requested time range, or if a session with a ``PlaybackMode of LIVE is requested for a stream that has no fragments within the last 30 seconds.

Example

try:
  ...
except client.exceptions.ResourceNotFoundException 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

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    GetImages will throw this error when Kinesis Video Streams can’t find the stream that you specified.

    GetHLSStreamingSessionURL and GetDASHStreamingSessionURL throw this error if a session with a PlaybackMode of ON_DEMAND or LIVE_REPLAY``is requested for a stream that has no fragments within the requested time range, or if a session with a ``PlaybackMode of LIVE is requested for a stream that has no fragments within the last 30 seconds.

    • 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.