pub enum VertexError {
Auth(Error),
Http(Error),
Provider {
status: u16,
body: String,
},
}Expand description
Errors from the provider.
Variants§
Auth(Error)
Credential acquisition failed.
Http(Error)
Transport/HTTP failure.
Provider
The API returned a non-2xx status.
Trait Implementations§
Source§impl Debug for VertexError
impl Debug for VertexError
Source§impl Display for VertexError
impl Display for VertexError
Source§impl Error for VertexError
impl Error for VertexError
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 From<Error> for VertexError
impl From<Error> for VertexError
Source§impl From<Error> for VertexError
impl From<Error> for VertexError
Source§impl LlmError for VertexError
impl LlmError for VertexError
Source§fn kind(&self) -> LlmErrorKind
fn kind(&self) -> LlmErrorKind
Classify this error so a transport (e.g. the harness’s Connect surface)
can map it onto an accurate status code — telling retryable (rate-limit /
timeout / unavailable) apart from terminal (auth / bad-request) failures
instead of collapsing everything to a catch-all. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for VertexError
impl !UnwindSafe for VertexError
impl Freeze for VertexError
impl Send for VertexError
impl Sync for VertexError
impl Unpin for VertexError
impl UnsafeUnpin for VertexError
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