ErrorCode
Electron APIs / recorder / ErrorCode
type ErrorCode =
| -1001
| -1000
| -999
| -998
| -997
| -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.
Example
function handleError(code: ErrorCode) {
if (code === -1000) {
console.error("OBS process crashed");
}
}