pub enum AgUiError {
Serialization(Error),
Validation(String),
InvalidEvent(String),
InvalidMessage(String),
State(String),
}Expand description
Errors that can occur in AG-UI core operations.
Variants§
Serialization(Error)
Error during JSON serialization/deserialization
Validation(String)
Validation error for event or message data
InvalidEvent(String)
Invalid event format or structure
InvalidMessage(String)
Invalid message format or content
State(String)
State operation error
Trait Implementations§
Source§impl Error for AgUiError
impl Error for AgUiError
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 AgUiError
impl !RefUnwindSafe for AgUiError
impl Send for AgUiError
impl Sync for AgUiError
impl Unpin for AgUiError
impl UnsafeUnpin for AgUiError
impl !UnwindSafe for AgUiError
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