FindMyFiles

FindMyFiles.Engine

EngineException Class

The engine rejected an operation with a structured error code (the transport is alive but the engine returned a failure). The code maps to the `FMF_E_*` table in docs/ARCHITECTURE.md.

public sealed class EngineException : System.Exception

Inheritance System.ObjectSystem.Exception → EngineException

Constructors

EngineException(string, int) Constructor

The engine rejected an operation with a structured error code (the transport is alive but the engine returned a failure). The code maps to the `FMF_E_*` table in docs/ARCHITECTURE.md.

public EngineException(string message, int code);

Parameters

message System.String

The human-readable message returned by the engine.

code System.Int32

The numeric `FMF_E_*` code (held in Code).

Properties

EngineException.Code Property

The `FMF_E_*` code returned by the engine. Used for UI branching (e.g. `FMF_E_LOCKED` routes to the setup screen).

public int Code { get; }

Property Value

System.Int32