Menu

Enum

ErrorCode

kurogane::ErrorCodeSource
#[non_exhaustive] pub enum ErrorCode { Handler, Panic, Buffer, Dropped, Acl, Capability, PathDenied, PathInvalid, TooLarge, Left, App(NonZeroU16), }

Classifies an IpcError by the numeric code exposed to the renderer. Runtime errors use the fixed codes 0 through -9; applications may use positive codes through ErrorCode::App.

Variants

#Handler

A handler reported a failure (0, the default).

#Panic

The handler panicked (-1).

#Buffer

The request or response could not be decoded or encoded (-2).

#Dropped

The handler dropped its responder without resolving (-3).

#Acl

The ACL refused the calling origin (-4).

#Capability

No capability grant of the origin covers the operation (-5).

#PathDenied

The path is outside the granted roots, denied, or a link (-6).

#PathInvalid

The path is malformed (-7).

#TooLarge

The file or message exceeds its transfer limit (-8).

#Left

The page left with the request open and came back from the back-forward cache (-9).

#App(NonZeroU16)

An application-defined code, sent as is.

Methods

#pub fn wire(self) -> i32

The numeric code the renderer receives.

Trait implementations