Menu

Struct

IpcError

kurogane::IpcErrorSource
pub struct IpcError { /* private fields */ }

A structured error with a numeric ErrorCode and human-readable message.

Displays as "{code}: {message}", the format the renderer parses into an Error with a numeric .code.

Methods

#pub fn new(message: impl Into<String>) -> Self

A handler failure (ErrorCode::Handler).

#pub fn with_code(message: impl Into<String>, code: ErrorCode) -> Self

A failure of class code.

#pub fn code(&self) -> ErrorCode

#pub fn message(&self) -> &str

Trait implementations