pub enum Error {
Container(Error),
Misrepresented(Executable),
Refused(Decision),
Policy(Error),
Session(Error),
Extract(Error),
Launch(Error),
Watch(Error),
}Expand description
Why a container did not open.
Variants§
Container(Error)
It is not a container, or not one this build can read.
Misrepresented(Executable)
The content file is a program wearing a document’s name, so it was not opened. Concept 5.1: the one content check there is, and the only thing it can do is refuse something policy had already allowed.
Refused(Decision)
Policy will not have it opened. Carries the decision, so the refusal can say which of the several reasons applies.
Policy(Error)
Policy could not be established. Distinct from a refusal: nothing has decided that this content file may not be opened, and the remedy is to fix the source rather than to change the lists.
Session(Error)
The session directory could not be made.
Extract(Error)
The content file did not reach the session directory.
Launch(Error)
The desktop would not open it.
Watch(Error)
The content directory could not be watched. Fatal rather than degraded: concept 6 already concedes that detection is unreliable, and a session with no watch at all would write back only at close while looking like one that writes back on every save.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()