pub enum ShellError {
Show 24 variants
EmptySession,
StoreRoot,
HomeserverUrl,
BotName,
Nick,
SessionList(String),
Register(String),
UnknownNick,
Dm,
Config(String),
DeviceToken,
BaseUrl,
BadRecordKey,
RoutineUrl,
NodeRoutine,
Gateway(String),
RoutineBearer,
RoutineStatus(u16),
RoutineTransport(String),
Http(String),
Ingest(String),
Io(Error),
Store(StoreError),
Messenger(MessengerError),
}Expand description
Why opening the client store, releasing a send, or posting a routine failed. The seal key and the device bearer are never included.
Variants§
EmptySession
No session id, so there is nothing to hash.
StoreRoot
STORE_ROOT_ENV is unset outside tests.
HomeserverUrl
HOMESERVER_URL_ENV and toml homeserver_url are both unset.
BotName
BOT_NAME_ENV is unset. The display name is required for a web session.
Nick
The display name did not yield a nick.
SessionList(String)
The host’s session list was missing or refused. No bearer is included.
Register(String)
Homeserver register failed. The text is a status and errcode, not a bearer.
UnknownNick
No session nick matched.
Dm
A direct room was not opened or its encrypted send did not finish.
Config(String)
Toml for the homeserver URL could not be read.
DeviceToken
The bearer is empty or not a single header value.
BaseUrl
base_url is not an http or https origin.
BadRecordKey
A record key tried to leave the store directory.
RoutineUrl
The routine URL is not an http or https URL this shell can post to.
NodeRoutine
Node CLI open path saw a routine URL or bearer. The value is not included.
Gateway(String)
The local gateway did not yield a routine. No token, URL, or key.
RoutineBearer
The routine bearer is not a single header value. The value is not included.
RoutineStatus(u16)
The routine answered once and was not a success. The body is not included.
RoutineTransport(String)
The routine socket or TLS handshake failed. The body is not included.
Http(String)
A homeserver call failed before a status line. The body is not included.
Ingest(String)
The engine rejected a successful HTTP body. Long blobs are omitted.
Io(Error)
Reading or writing the store directory failed.
Store(StoreError)
The seal did not authenticate. A different session id produces this.
Messenger(MessengerError)
The engine rejected the command or could not load the Olm account.
Trait Implementations§
Source§impl Debug for ShellError
impl Debug for ShellError
Source§impl Display for ShellError
impl Display for ShellError
Source§impl Error for ShellError
impl Error for ShellError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()