pub enum RuntimeError {
Bytecode(BytecodeError),
UnknownTarget(String),
WrongProbeKind {
name: String,
},
MatchFailed(String),
AssertFailed(String),
ExtractFailed {
name: String,
reason: String,
},
Flow(String),
InvalidDuration(String),
Http(Error),
Io(Error),
Regex(Error),
Other(String),
}Variants§
Bytecode(BytecodeError)
UnknownTarget(String)
WrongProbeKind
MatchFailed(String)
AssertFailed(String)
ExtractFailed
Flow(String)
InvalidDuration(String)
Http(Error)
Io(Error)
Regex(Error)
Other(String)
Implementations§
Source§impl RuntimeError
impl RuntimeError
pub fn match_failed(matcher: &QualifiedMatch, detail: impl Into<String>) -> Self
pub fn assert_failed( matcher: &QualifiedMatch, detail: impl Into<String>, ) -> Self
Sourcepub fn full_message(&self) -> String
pub fn full_message(&self) -> String
The complete error message, including every underlying cause.
thiserror’s Display renders only this error’s own message. For the
wrapped HTTP and I/O variants the real reason — a rejected TLS
certificate, a connection reset, a response body that failed to decode —
lives in the source chain and would
otherwise be dropped, leaving an opaque "http error: …". This walks
that chain and joins it into one line so logs and scan reports carry the
actual cause.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<BytecodeError> for RuntimeError
impl From<BytecodeError> for RuntimeError
Source§fn from(source: BytecodeError) -> Self
fn from(source: BytecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl !RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl !UnwindSafe for RuntimeError
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