pub trait PublicError: ErrorCode {
// Required method
fn public_message(&self) -> Message;
}Expand description
Stable public message for errors that cross process or API boundaries.
This should be safe to expose in release builds. It should not include paths, addresses, tokens, remote messages, OS errors, SQL errors, config values, or other runtime detail.
Required Methods§
Sourcefn public_message(&self) -> Message
fn public_message(&self) -> Message
Returns the stable public-facing message.