github.com/aavshr/aws-sdk-go@v1.41.3/service/kinesisvideoarchivedmedia/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package kinesisvideoarchivedmedia 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeClientLimitExceededException for service response error code 12 // "ClientLimitExceededException". 13 // 14 // Kinesis Video Streams has throttled the request because you have exceeded 15 // a limit. Try making the call later. For information about limits, see Kinesis 16 // Video Streams Limits (http://docs.aws.amazon.com/kinesisvideostreams/latest/dg/limits.html). 17 ErrCodeClientLimitExceededException = "ClientLimitExceededException" 18 19 // ErrCodeInvalidArgumentException for service response error code 20 // "InvalidArgumentException". 21 // 22 // A specified parameter exceeds its restrictions, is not supported, or can't 23 // be used. 24 ErrCodeInvalidArgumentException = "InvalidArgumentException" 25 26 // ErrCodeInvalidCodecPrivateDataException for service response error code 27 // "InvalidCodecPrivateDataException". 28 // 29 // The codec private data in at least one of the tracks of the video stream 30 // is not valid for this operation. 31 ErrCodeInvalidCodecPrivateDataException = "InvalidCodecPrivateDataException" 32 33 // ErrCodeInvalidMediaFrameException for service response error code 34 // "InvalidMediaFrameException". 35 // 36 // One or more frames in the requested clip could not be parsed based on the 37 // specified codec. 38 ErrCodeInvalidMediaFrameException = "InvalidMediaFrameException" 39 40 // ErrCodeMissingCodecPrivateDataException for service response error code 41 // "MissingCodecPrivateDataException". 42 // 43 // No codec private data was found in at least one of tracks of the video stream. 44 ErrCodeMissingCodecPrivateDataException = "MissingCodecPrivateDataException" 45 46 // ErrCodeNoDataRetentionException for service response error code 47 // "NoDataRetentionException". 48 // 49 // A streaming session was requested for a stream that does not retain data 50 // (that is, has a DataRetentionInHours of 0). 51 ErrCodeNoDataRetentionException = "NoDataRetentionException" 52 53 // ErrCodeNotAuthorizedException for service response error code 54 // "NotAuthorizedException". 55 // 56 // Status Code: 403, The caller is not authorized to perform an operation on 57 // the given stream, or the token has expired. 58 ErrCodeNotAuthorizedException = "NotAuthorizedException" 59 60 // ErrCodeResourceNotFoundException for service response error code 61 // "ResourceNotFoundException". 62 // 63 // GetMedia throws this error when Kinesis Video Streams can't find the stream 64 // that you specified. 65 // 66 // GetHLSStreamingSessionURL and GetDASHStreamingSessionURL throw this error 67 // if a session with a PlaybackMode of ON_DEMAND or LIVE_REPLAYis requested 68 // for a stream that has no fragments within the requested time range, or if 69 // a session with a PlaybackMode of LIVE is requested for a stream that has 70 // no fragments within the last 30 seconds. 71 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 72 73 // ErrCodeUnsupportedStreamMediaTypeException for service response error code 74 // "UnsupportedStreamMediaTypeException". 75 // 76 // The type of the media (for example, h.264 or h.265 video or ACC or G.711 77 // audio) could not be determined from the codec IDs of the tracks in the first 78 // fragment for a playback session. The codec ID for track 1 should be V_MPEG/ISO/AVC 79 // and, optionally, the codec ID for track 2 should be A_AAC. 80 ErrCodeUnsupportedStreamMediaTypeException = "UnsupportedStreamMediaTypeException" 81 ) 82 83 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 84 "ClientLimitExceededException": newErrorClientLimitExceededException, 85 "InvalidArgumentException": newErrorInvalidArgumentException, 86 "InvalidCodecPrivateDataException": newErrorInvalidCodecPrivateDataException, 87 "InvalidMediaFrameException": newErrorInvalidMediaFrameException, 88 "MissingCodecPrivateDataException": newErrorMissingCodecPrivateDataException, 89 "NoDataRetentionException": newErrorNoDataRetentionException, 90 "NotAuthorizedException": newErrorNotAuthorizedException, 91 "ResourceNotFoundException": newErrorResourceNotFoundException, 92 "UnsupportedStreamMediaTypeException": newErrorUnsupportedStreamMediaTypeException, 93 }