Enum aws_sdk_kinesisvideoarchivedmedia::operation::get_dash_streaming_session_url::GetDASHStreamingSessionURLError
source · #[non_exhaustive]pub enum GetDASHStreamingSessionURLError {
ClientLimitExceededException(ClientLimitExceededException),
InvalidArgumentException(InvalidArgumentException),
InvalidCodecPrivateDataException(InvalidCodecPrivateDataException),
MissingCodecPrivateDataException(MissingCodecPrivateDataException),
NoDataRetentionException(NoDataRetentionException),
NotAuthorizedException(NotAuthorizedException),
ResourceNotFoundException(ResourceNotFoundException),
UnsupportedStreamMediaTypeException(UnsupportedStreamMediaTypeException),
Unhandled(Unhandled),
}
Expand description
Error type for the GetDASHStreamingSessionURLError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
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)
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.
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(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl GetDASHStreamingSessionURLError
impl GetDASHStreamingSessionURLError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the GetDASHStreamingSessionURLError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetDASHStreamingSessionURLError::Unhandled
variant from an ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_client_limit_exceeded_exception(&self) -> bool
pub fn is_client_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::ClientLimitExceededException
.
sourcepub fn is_invalid_argument_exception(&self) -> bool
pub fn is_invalid_argument_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::InvalidArgumentException
.
sourcepub fn is_invalid_codec_private_data_exception(&self) -> bool
pub fn is_invalid_codec_private_data_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::InvalidCodecPrivateDataException
.
sourcepub fn is_missing_codec_private_data_exception(&self) -> bool
pub fn is_missing_codec_private_data_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::MissingCodecPrivateDataException
.
sourcepub fn is_no_data_retention_exception(&self) -> bool
pub fn is_no_data_retention_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::NoDataRetentionException
.
Returns true
if the error kind is GetDASHStreamingSessionURLError::NotAuthorizedException
.
sourcepub fn is_resource_not_found_exception(&self) -> bool
pub fn is_resource_not_found_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::ResourceNotFoundException
.
sourcepub fn is_unsupported_stream_media_type_exception(&self) -> bool
pub fn is_unsupported_stream_media_type_exception(&self) -> bool
Returns true
if the error kind is GetDASHStreamingSessionURLError::UnsupportedStreamMediaTypeException
.
Trait Implementations§
source§impl CreateUnhandledError for GetDASHStreamingSessionURLError
impl CreateUnhandledError for GetDASHStreamingSessionURLError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Error for GetDASHStreamingSessionURLError
impl Error for GetDASHStreamingSessionURLError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<GetDASHStreamingSessionURLError> for Error
impl From<GetDASHStreamingSessionURLError> for Error
source§fn from(err: GetDASHStreamingSessionURLError) -> Self
fn from(err: GetDASHStreamingSessionURLError) -> Self
source§impl ProvideErrorMetadata for GetDASHStreamingSessionURLError
impl ProvideErrorMetadata for GetDASHStreamingSessionURLError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetDASHStreamingSessionURLError
impl RequestId for GetDASHStreamingSessionURLError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.