ProfileRelockFailedException class final

relock-failed: the file system refused to read or replace wayfinder.json or wayfinder.lock while WayfinderProfileResolver.relock ran. The message names the path and the operating system's reason.

changed is empty when both files hold the bytes they held before relocking: it failed while reading, a write failed before it replaced its file, or each file it already wrote got its original bytes back. It lists each file left holding what relocking wrote only when giving the original bytes back failed too (partial). Then wayfinder.json may hold the edit while wayfinder.lock is stale, which WayfinderProfileResolver.status reports as ProfileLockChangeKind.configurationChanged; relocking again with an edit that returns the text unchanged writes the lock for it.

Inheritance

Constructors

ProfileRelockFailedException(String message, {List<String> changed = const []})

Properties

changed → List<String>
The absolute path of each file left holding what relocking wrote.
final
code → String
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
finalinherited
partial → bool
Whether a file was left holding what relocking wrote (changed).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited