Single enum for both function return values and process exit codes. Following Unix conventions: 0 = success, 1 = general error, 2 = usage error.
| Enumerator |
|---|
| ASCIICHAT_OK | Success
|
| ERROR_GENERAL | Unspecified error
|
| ERROR_USAGE | Invalid command line arguments or options
|
| ERROR_MEMORY | Memory allocation failed (OOM)
|
| ERROR_CONFIG | Configuration file or settings error
|
| ERROR_CRYPTO_INIT | Cryptographic initialization failed
|
| ERROR_LOGGING_INIT | Logging system initialization failed
|
| ERROR_PLATFORM_INIT | Platform-specific initialization failed
|
| ERROR_INIT | General initialization failed
|
| ERROR_WEBCAM | Webcam initialization or capture failed
|
| ERROR_WEBCAM_IN_USE | Webcam is in use by another application
|
| ERROR_WEBCAM_PERMISSION | Webcam permission denied
|
| ERROR_AUDIO | Audio device initialization or I/O failed
|
| ERROR_AUDIO_IN_USE | Audio device is in use
|
| ERROR_TERMINAL | Terminal initialization or capability detection failed
|
| ERROR_NETWORK | General network error
|
| ERROR_NETWORK_BIND | Cannot bind to port (server)
|
| ERROR_NETWORK_CONNECT | Cannot connect to server (client)
|
| ERROR_NETWORK_TIMEOUT | Network operation timed out
|
| ERROR_NETWORK_PROTOCOL | Protocol violation or incompatible version
|
| ERROR_NETWORK_SIZE | Network packet size error
|
| ERROR_RATE_LIMITED | Rate limit exceeded
|
| ERROR_SESSION_NOT_FOUND | Session not found or expired
|
| ERROR_SESSION_FULL | Session has reached max participants
|
| ERROR_INVALID_PASSWORD | Incorrect password
|
| ERROR_INVALID_SIGNATURE | Invalid cryptographic signature
|
| ERROR_ACDS_STRING_TAKEN | Requested session string already in use (ACDS)
|
| ERROR_ACDS_STRING_INVALID | Invalid session string format (ACDS)
|
| ERROR_INTERNAL | Internal server error
|
| ERROR_UNKNOWN_PACKET | Unknown packet type received
|
| ERROR_CRYPTO | Cryptographic operation failed
|
| ERROR_CRYPTO_KEY | Key loading, parsing, or generation failed
|
| ERROR_CRYPTO_AUTH | Authentication failed
|
| ERROR_CRYPTO_HANDSHAKE | Cryptographic handshake failed
|
| ERROR_CRYPTO_VERIFICATION | Signature or key verification failed
|
| ERROR_THREAD | Thread creation or management failed
|
| ERROR_BUFFER | Buffer allocation or overflow
|
| ERROR_BUFFER_FULL | Buffer full
|
| ERROR_BUFFER_OVERFLOW | Buffer overflow
|
| ERROR_DISPLAY | Display rendering or output error
|
| ERROR_INVALID_STATE | Invalid program state
|
| ERROR_INVALID_PARAM | Invalid parameter
|
| ERROR_INVALID_FRAME | Invalid frame data
|
| ERROR_RESOURCE_EXHAUSTED | System resources exhausted
|
| ERROR_FORMAT | String formatting operation failed
|
| ERROR_STRING | String manipulation operation failed
|
| ERROR_NOT_FOUND | Resource not found in registry or lookup
|
| ERROR_SIGNAL_INTERRUPT | Interrupted by signal (SIGINT, SIGTERM)
|
| ERROR_SIGNAL_CRASH | Fatal signal (SIGSEGV, SIGABRT, etc.)
|
| ERROR_ASSERTION_FAILED | Assertion or invariant violation
|
| ERROR_COMPRESSION | Compression operation failed
|
| ERROR_DECOMPRESSION | Decompression operation failed
|
| ERROR_FILE_OPERATION | File or directory operation failed
|
| ERROR_FILE_NOT_FOUND | File or directory not found
|
| ERROR_PROCESS_FAILED | Process execution or termination failed
|