optris::sdk::InsufficientSpaceException
The destination has less free space than the caller asked to keep, so the recording was not started.
Raised by Imager::StartRecording() when optris::sdk::rec::RecordingOptions::min_free_bytes is set and the destination's file system is below it. The message names both numbers -- what was free and what was required -- because the application that set the floor is the one that has to explain the refusal to a user.
Why it is a type and not a message: Why it is a type and not a message It is the caller's own threshold refusing the call, so it is the one recording failure an application can always act on: free space, or lower the floor. Collapsed into IoException it would be indistinguishable from a destination that cannot be written at all, and from FileTooLargeException, where more free space does not help. The symmetry with PathExistsException is deliberate: a refusal where every argument was well formed and the world was not as the caller assumed.
A subclass of SdkException and not of IoException: nothing was read or written -- the SDK deliberately did not try -- and every catch ([SdkException](/documentation/sdks/otc-sdk/v12.0/api/classes/optris.sdk.sdkexception) &) already written keeps catching it.
Nothing is raised mid-recording: Nothing is raised mid-recording This is a refusal at the start. A volume that fills up while a recording runs does not produce it; see rec::RecordingOptions::min_free_bytes for why the SDK does not own that stop.
Crosses the C ABI as OPTRIS_SDK_ERROR_INSUFFICIENT_SPACE and reaches C# as InsufficientSpaceException, Python as InsufficientSpaceError and Rust as Status::InsufficientSpace.
Inherits from optris::sdk::SdkException.