MCPcopy Create free account
hub / github.com/Lintermute/lazy_errors / from_message

Method from_message

lazy_errors/src/error.rs:548–550  ·  view source on GitHub ↗
(msg: M)

Source from the content-addressed store, hash-verified

546 /// Creates an [`AdHocError`] variant of [`Error`] from a message.
547 #[track_caller]
548 pub fn from_message<M: Display>(msg: M) -> Self {
549 ErrorData::from_message(msg).into()
550 }
551
552 /// Creates a [`StashedErrors`] variant of [`Error`].
553 pub fn from_stash<M, E, L>(summary: M, errors: E, locations: L) -> Self

Callers

nothing calls this directly

Calls 1

locationFunction · 0.85

Tested by

no test coverage detected