Class PathContainmentException
- Namespace
- FishMMO.Patcher
- Assembly
- Updater.dll
Thrown when a manifest-supplied path would resolve outside the install root.
public sealed class PathContainmentException : Exception, ISerializable
- Inheritance
-
PathContainmentException
- Implements
- Inherited Members
Remarks
A distinct exception type rather than a bool return at every call site. The patch application flow already treats a thrown exception as "roll back and fail the whole patch", which is exactly the required behaviour: silently skipping a rejected entry would let a hostile manifest suppress individual files (say, a security fix) while the rest of the patch still applied and the client still reported itself updated.
Constructors
PathContainmentException(string, string)
public PathContainmentException(string offendingPath, string reason)
Parameters
Properties
OffendingPath
The manifest-supplied path that was rejected, verbatim.
public string OffendingPath { get; }