pub enum DetectSyntaxError {
InternalServer(String),
InvalidRequest(String),
TextSizeLimitExceeded(String),
UnsupportedLanguage(String),
}Expand description
Errors returned by DetectSyntax
Variants§
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 DetectSyntaxError
impl DetectSyntaxError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DetectSyntaxError>
Trait Implementations§
Source§impl Debug for DetectSyntaxError
impl Debug for DetectSyntaxError
Source§impl Display for DetectSyntaxError
impl Display for DetectSyntaxError
Source§impl Error for DetectSyntaxError
impl Error for DetectSyntaxError
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 DetectSyntaxError
impl PartialEq for DetectSyntaxError
impl StructuralPartialEq for DetectSyntaxError
Auto Trait Implementations§
impl Freeze for DetectSyntaxError
impl RefUnwindSafe for DetectSyntaxError
impl Send for DetectSyntaxError
impl Sync for DetectSyntaxError
impl Unpin for DetectSyntaxError
impl UnwindSafe for DetectSyntaxError
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