#[non_exhaustive]
pub enum Error {
    ClientLimitExceededException(ClientLimitExceededException),
    InvalidArgumentException(InvalidArgumentException),
    InvalidCodecPrivateDataException(InvalidCodecPrivateDataException),
    InvalidMediaFrameException(InvalidMediaFrameException),
    MissingCodecPrivateDataException(MissingCodecPrivateDataException),
    NoDataRetentionException(NoDataRetentionException),
    NotAuthorizedException(NotAuthorizedException),
    ResourceNotFoundException(ResourceNotFoundException),
    UnsupportedStreamMediaTypeException(UnsupportedStreamMediaTypeException),
    Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

ClientLimitExceededException(ClientLimitExceededException)

Kinesis Video Streams has throttled the request because you have exceeded a limit. Try making the call later. For information about limits, see Kinesis Video Streams Limits.

InvalidArgumentException(InvalidArgumentException)

A specified parameter exceeds its restrictions, is not supported, or can't be used.

InvalidCodecPrivateDataException(InvalidCodecPrivateDataException)

The codec private data in at least one of the tracks of the video stream is not valid for this operation.

InvalidMediaFrameException(InvalidMediaFrameException)

One or more frames in the requested clip could not be parsed based on the specified codec.

MissingCodecPrivateDataException(MissingCodecPrivateDataException)

No codec private data was found in at least one of tracks of the video stream.

NoDataRetentionException(NoDataRetentionException)

A streaming session was requested for a stream that does not retain data (that is, has a DataRetentionInHours of 0).

NotAuthorizedException(NotAuthorizedException)

Status Code: 403, The caller is not authorized to perform an operation on the given stream, or the token has expired.

ResourceNotFoundException(ResourceNotFoundException)

GetMedia throws 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_REPLAYis 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.

UnsupportedStreamMediaTypeException(UnsupportedStreamMediaTypeException)

The type of the media (for example, h.264 or h.265 video or ACC or G.711 audio) could not be determined from the codec IDs of the tracks in the first fragment for a playback session. The codec ID for track 1 should be V_MPEG/ISO/AVC and, optionally, the codec ID for track 2 should be A_AAC.

Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more