ErrorCode
Electron APIs / recorder / ErrorCode
type ErrorCode =
| -1001
| -1000
| -999
| -998
| -997
| -996
| -12
| -11
| -10
| -8
| -7
| -4
| -1
| 0
| 1
| 2;
Enumeration of possible error codes returned by the recording system. Each error code represents a specific condition or failure during initialization, execution, or finalization of a recording session.
These codes help in identifying and handling recording-related issues.
| Code | Name | Description |
|---|---|---|
-1001 | Unknown | Generic unknown error. |
-1000 | ProcessTerminated | OBS process crashed. |
-999 | MissingBinaries | Missing binaries required for recording. |
-998 | ConnectionOBSError | Failed to connect to the OBS process. |
-997 | AlreadyRunning | Operation attempted while recording is already running. |
-996 | ElevationHelperMissing | Elevated game capture requested while the High Elevation Helper isn't installed. |
-12 | SplitRecordingDisabled | Attempted to split recording when split recording is disabled. |
-11 | MissingOrInvalidParameters | One or more required parameters are missing or invalid. |
-10 | NoActiveRecording | No active recording session found. |
-8 | EncoderError | Encoder encountered an error. |
-7 | NoDiskSpaceError | Not enough disk space to complete the recording. |
-4 | ProcessOutputError | Failed to process or finalize the output video file. |
-1 | BadPathError | Invalid or inaccessible output file path. |
0 | Success | Operation succeeded. |
1 | SuccessLowDiskSpace | Operation succeeded but stopped early due to low disk space. |
2 | SuccessWithError | Replay stopped while creating replay. |
Example
function handleError(code: ErrorCode) {
if (code === -1000) {
console.error("OBS process crashed");
}
}