Class BadRequestException
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BadRequestException.Builder,BadRequestException>
Your request didn't pass one or more validation tests. This can occur when a parameter has an invalid value, when you
combine parameters in a way that isn't supported, when the entity you're trying to delete doesn't exist, or if it's
in a non-terminal state (such as IN PROGRESS). See the exception message field for more information.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BadRequestException.Builderbuilder()reason()A code that identifies why the audio in your request was rejected.A code that identifies why the audio in your request was rejected.static Class<? extends BadRequestException.Builder> Create aAwsServiceException.Builderinitialized with the properties of thisAwsServiceException.Methods inherited from class software.amazon.awssdk.awscore.exception.AwsServiceException
awsErrorDetails, getMessage, isClockSkewException, isThrottlingExceptionMethods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, isRetryableException, requestId, statusCodeMethods inherited from class software.amazon.awssdk.core.exception.SdkException
create, numAttempts, rawMessage, retryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFieldsMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
toBuilder
Description copied from class:AwsServiceExceptionCreate aAwsServiceException.Builderinitialized with the properties of thisAwsServiceException.- Specified by:
toBuilderin interfaceToCopyableBuilder<BadRequestException.Builder,BadRequestException> - Overrides:
toBuilderin classTranscribeException- Returns:
- A new builder initialized with this config's properties.
-
builder
-
serializableBuilderClass
-
reason
A code that identifies why the audio in your request was rejected. Currently,
TranscribeAudioreturns this field, and only for problems with your audio. It isn't returned for other validation errors.Possible values:
-
audioTooLong: The audio is longer than the maximum duration of 1 hour. -
audioTooShort: The audio is shorter than 0.5 seconds. -
audioFileTooLarge: The audio is larger than the maximum size. -
unsupportedAudioFormat: The media format isn't supported. -
unsupportedChannelCount: You enabledChannelIdentificationand the audio has more than two channels. -
invalidAudio: Amazon Transcribe couldn't decode the audio. -
mediaDownloadFailed: Amazon Transcribe couldn't download the audio at yourMediaFileUri.
If the service returns an enum value that is not available in the current SDK version,
reasonwill returnBadRequestExceptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- A code that identifies why the audio in your request was rejected. Currently,
TranscribeAudioreturns this field, and only for problems with your audio. It isn't returned for other validation errors.Possible values:
-
audioTooLong: The audio is longer than the maximum duration of 1 hour. -
audioTooShort: The audio is shorter than 0.5 seconds. -
audioFileTooLarge: The audio is larger than the maximum size. -
unsupportedAudioFormat: The media format isn't supported. -
unsupportedChannelCount: You enabledChannelIdentificationand the audio has more than two channels. -
invalidAudio: Amazon Transcribe couldn't decode the audio. -
mediaDownloadFailed: Amazon Transcribe couldn't download the audio at yourMediaFileUri.
-
- See Also:
-
-
reasonAsString
A code that identifies why the audio in your request was rejected. Currently,
TranscribeAudioreturns this field, and only for problems with your audio. It isn't returned for other validation errors.Possible values:
-
audioTooLong: The audio is longer than the maximum duration of 1 hour. -
audioTooShort: The audio is shorter than 0.5 seconds. -
audioFileTooLarge: The audio is larger than the maximum size. -
unsupportedAudioFormat: The media format isn't supported. -
unsupportedChannelCount: You enabledChannelIdentificationand the audio has more than two channels. -
invalidAudio: Amazon Transcribe couldn't decode the audio. -
mediaDownloadFailed: Amazon Transcribe couldn't download the audio at yourMediaFileUri.
If the service returns an enum value that is not available in the current SDK version,
reasonwill returnBadRequestExceptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- A code that identifies why the audio in your request was rejected. Currently,
TranscribeAudioreturns this field, and only for problems with your audio. It isn't returned for other validation errors.Possible values:
-
audioTooLong: The audio is longer than the maximum duration of 1 hour. -
audioTooShort: The audio is shorter than 0.5 seconds. -
audioFileTooLarge: The audio is larger than the maximum size. -
unsupportedAudioFormat: The media format isn't supported. -
unsupportedChannelCount: You enabledChannelIdentificationand the audio has more than two channels. -
invalidAudio: Amazon Transcribe couldn't decode the audio. -
mediaDownloadFailed: Amazon Transcribe couldn't download the audio at yourMediaFileUri.
-
- See Also:
-
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-