Enum aws_sdk_kinesisvideoarchivedmedia::operation::get_hls_streaming_session_url::GetHLSStreamingSessionURLError
source · #[non_exhaustive]pub enum GetHLSStreamingSessionURLError {
ClientLimitExceededException(ClientLimitExceededException),
InvalidArgumentException(InvalidArgumentException),
InvalidCodecPrivateDataException(InvalidCodecPrivateDataException),
MissingCodecPrivateDataException(MissingCodecPrivateDataException),
NoDataRetentionException(NoDataRetentionException),
NotAuthorizedException(NotAuthorizedException),
ResourceNotFoundException(ResourceNotFoundException),
UnsupportedStreamMediaTypeException(UnsupportedStreamMediaTypeException),
Unhandled(Unhandled),
}
Expand description
Error type for the GetHLSStreamingSessionURLError
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)
GetImages
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 GetHLSStreamingSessionURLError
impl GetHLSStreamingSessionURLError
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 GetHLSStreamingSessionURLError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetHLSStreamingSessionURLError::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 GetHLSStreamingSessionURLError::ClientLimitExceededException
.
sourcepub fn is_invalid_argument_exception(&self) -> bool
pub fn is_invalid_argument_exception(&self) -> bool
Returns true
if the error kind is GetHLSStreamingSessionURLError::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 GetHLSStreamingSessionURLError::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 GetHLSStreamingSessionURLError::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 GetHLSStreamingSessionURLError::NoDataRetentionException
.
Returns true
if the error kind is GetHLSStreamingSessionURLError::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 GetHLSStreamingSessionURLError::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 GetHLSStreamingSessionURLError::UnsupportedStreamMediaTypeException
.
Trait Implementations§
source§impl CreateUnhandledError for GetHLSStreamingSessionURLError
impl CreateUnhandledError for GetHLSStreamingSessionURLError
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 GetHLSStreamingSessionURLError
impl Error for GetHLSStreamingSessionURLError
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<GetHLSStreamingSessionURLError> for Error
impl From<GetHLSStreamingSessionURLError> for Error
source§fn from(err: GetHLSStreamingSessionURLError) -> Self
fn from(err: GetHLSStreamingSessionURLError) -> Self
source§impl ProvideErrorMetadata for GetHLSStreamingSessionURLError
impl ProvideErrorMetadata for GetHLSStreamingSessionURLError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetHLSStreamingSessionURLError
impl RequestId for GetHLSStreamingSessionURLError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.