pub enum SdkLayerError {
EmptyRunId,
UnsafeRunId,
RunIdMismatch {
expected: String,
actual: String,
},
EmptySdkLog,
InvalidJson {
line: usize,
source: Error,
},
UnexpectedSchema {
line: usize,
observed_schema: Option<String>,
},
EventRunIdMismatch {
line: usize,
expected: String,
actual: String,
},
MissingRequiredField {
line: usize,
field: String,
},
MissingToolCallField {
line: usize,
event_type: String,
field: &'static str,
},
UnsupportedEventType {
line: usize,
event_type: String,
},
SeqMismatch {
line: usize,
expected: u64,
actual: u64,
},
Json(Error),
}Variants§
EmptyRunId
UnsafeRunId
RunIdMismatch
EmptySdkLog
InvalidJson
UnexpectedSchema
EventRunIdMismatch
MissingRequiredField
MissingToolCallField
UnsupportedEventType
SeqMismatch
Json(Error)
Trait Implementations§
Source§impl Debug for SdkLayerError
impl Debug for SdkLayerError
Source§impl Display for SdkLayerError
impl Display for SdkLayerError
Source§impl Error for SdkLayerError
impl Error for SdkLayerError
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 SdkLayerError
impl From<Error> for SdkLayerError
Source§fn from(source: Error) -> SdkLayerError
fn from(source: Error) -> SdkLayerError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SdkLayerError
impl !RefUnwindSafe for SdkLayerError
impl Send for SdkLayerError
impl Sync for SdkLayerError
impl Unpin for SdkLayerError
impl UnsafeUnpin for SdkLayerError
impl !UnwindSafe for SdkLayerError
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