pub enum BatchDetectSyntaxError {
BatchSizeLimitExceeded(String),
InternalServer(String),
InvalidRequest(String),
TextSizeLimitExceeded(String),
UnsupportedLanguage(String),
}Expand description
Errors returned by BatchDetectSyntax
Variants§
BatchSizeLimitExceeded(String)
The number of documents in the request exceeds the limit of 25. Try your request again with fewer documents.
InternalServer(String)
An internal server error occurred. Retry your request.
InvalidRequest(String)
The request is invalid.
TextSizeLimitExceeded(String)
The size of the input text exceeds the limit. Use a smaller document.
UnsupportedLanguage(String)
Amazon Comprehend can't process the language of the input text. For all custom entity recognition APIs (such as CreateEntityRecognizer), only English is accepted. For most other APIs, such as those for Custom Classification, Amazon Comprehend accepts text in all supported languages. For a list of supported languages, see supported-languages.
Implementations§
Source§impl BatchDetectSyntaxError
impl BatchDetectSyntaxError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<BatchDetectSyntaxError>
Trait Implementations§
Source§impl Debug for BatchDetectSyntaxError
impl Debug for BatchDetectSyntaxError
Source§impl Display for BatchDetectSyntaxError
impl Display for BatchDetectSyntaxError
Source§impl Error for BatchDetectSyntaxError
impl Error for BatchDetectSyntaxError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BatchDetectSyntaxError
impl PartialEq for BatchDetectSyntaxError
impl StructuralPartialEq for BatchDetectSyntaxError
Auto Trait Implementations§
impl Freeze for BatchDetectSyntaxError
impl RefUnwindSafe for BatchDetectSyntaxError
impl Send for BatchDetectSyntaxError
impl Sync for BatchDetectSyntaxError
impl Unpin for BatchDetectSyntaxError
impl UnsafeUnpin for BatchDetectSyntaxError
impl UnwindSafe for BatchDetectSyntaxError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more