pub enum PronunciationError {
NotModified304,
NotAcceptable406,
BadRequest400,
Unuathorised401(String),
NotFound404,
InternalServerError500,
ServiceUnavailable503,
ConnectionError(String),
}
Available on crate feature
tts
only.Expand description
Errors that may be returned in pronunciation requests
Variants§
NotModified304
The requested resource has not been modified since the time specified by the If-Modified-Since header, as documented in the HTTP specification
NotAcceptable406
The request specified an Accept header with an incompatible content type
BadRequest400
A required input parameter is null or a specified input parameter or header value is invalid or not supported
Unuathorised401(String)
The specified customisation_id is invalid for the requesting credentials
NotFound404
The specified voice does not exist or, for IBM Cloud Pak for Data, the voice parameter was not specified but the default voice is not installed. The message is Model ‘{voice}’ not found
InternalServerError500
The service experienced an internal error.
The service is currently unavailable
ConnectionError(String)
There was an error making the request
Trait Implementations§
Source§impl Debug for PronunciationError
impl Debug for PronunciationError
Source§impl Display for PronunciationError
impl Display for PronunciationError
Source§impl Error for PronunciationError
impl Error for PronunciationError
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()
Auto Trait Implementations§
impl Freeze for PronunciationError
impl RefUnwindSafe for PronunciationError
impl Send for PronunciationError
impl Sync for PronunciationError
impl Unpin for PronunciationError
impl UnwindSafe for PronunciationError
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