InsufficientSpaceException
public sealed class InsufficientSpaceException : SdkConfigurationException
The destination has less free space than you asked to keep, so the recording was not started.
Raised when RecordingOptions.MinimumFreeBytes 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.
It is your own threshold refusing the call, so it is the one recording failure you can always act on: free space, or lower the floor. Collapsed into SdkIOException it would be indistinguishable from a destination that cannot be written at all.
Derives from SdkConfigurationException, so a broad catch written before this type existed keeps working. Nothing is raised mid-recording: this is a refusal at the start.
Example
try { camera.StartRecording(path, options); } catch (InsufficientSpaceException e) { ShowUser(e.Message); }
InsufficientSpaceException: constructors
public InsufficientSpaceException(string message)
Create the exception.
message: What went wrong.
public InsufficientSpaceException(string message, int status)
Create the exception with its native status.
message: What went wrong.status: The native status code.