Skip to Content
Development GuideNeuG Error Codes

NeuG Error Codes

NeuG defines all runtime/service error codes in the protobuf file error.proto. The enums in that file are compiled into every component, so developers should treat the definitions there as the single source of truth. The table below summarizes each code and its meaning for quick reference while debugging or surfacing errors.

CategoryCodeNumeric ValueMeaning
GeneralOK0Successful operation; no error.
GeneralERR_PERMISSION1001Operation blocked due to missing permissions.
GeneralERR_VERSION_MISMATCHED1002Binary/database versions are incompatible with the data directory.
GeneralERR_DIRECTORY_NOT_EXIST1003Target directory path does not exist.
GeneralERR_DATABASE_LOCKED1004Data directory is locked by another process.
GeneralERR_DISK_SPACE_EXHAUSTED1005Insufficient disk space to continue.
GeneralERR_CORRUPTION_DETECTED1006Files appear corrupted or not in the expected format.
GeneralERR_INVALID_PATH1007Provided filesystem path is invalid.
GeneralERR_CONFIG_INVALID1008Configuration file or values are malformed.
GeneralERR_INVALID_ARGUMENT1009API/input arguments are missing or malformed.
GeneralERR_NOT_FOUND1010Requested resource (vertex, file, etc.) cannot be found.
GeneralERR_NOT_SUPPORTED1011Feature or operation is not implemented for the current context.
GeneralERR_INTERNAL_ERROR1012Unexpected internal failure; inspect logs for stacktrace.
GeneralERR_ILLEGAL_OPERATION1013Operation is not allowed in the current state/configuration.
GeneralERR_IO_ERROR1014Underlying filesystem or device I/O failure.
GeneralERR_BAD_ENCODING1015Unsupported encoding/decoding encountered.
GeneralERR_INVALID_FILE1016Referenced file does not exist or is unreadable.
GeneralERR_EXTENSION1017Failure while loading or executing an extension.
Networking / SessionsERR_NETWORK2001Generic network transport error.
Networking / SessionsERR_SESSION_CLOSED2002Session handle is closed and no longer usable.
Networking / SessionsERR_CONNECTION_CLOSED2003Connection dropped (server shutdown or DB closed).
Networking / SessionsERR_POOL_EXHAUSTED2004Connection/session pool ran out of available entries.
Networking / SessionsERR_SERVICE_UNAVAILABLE2005Service is offline or not yet ready.
Networking / SessionsERR_LOAD_OVERFLOW2006Service is overloaded; clients should retry/back off.
Networking / SessionsERR_CONNECTION_ERROR2007Failure establishing or maintaining a connection.
Query Compilation & ExecutionERR_COMPILATION3000Failure during query compilation stage.
Query Compilation & ExecutionERR_QUERY_EXECUTION3001Generic runtime failure while executing query plan.
Query Compilation & ExecutionERR_QUERY_SYNTAX3002Query syntax or semantics invalid.
Query Compilation & ExecutionERR_QUERY_TIMEOUT3003Query exceeded configured execution time limit.
Query Compilation & ExecutionERR_CONCURRENT_WRITE3004Conflicting concurrent write detected.
Query Compilation & ExecutionERR_CODEGEN_ERROR3005Failure during query code generation.
Query Compilation & ExecutionERR_EMPTY_RESULT3006Planner inferred empty result set.
Query Compilation & ExecutionERR_NOT_INITIALIZED3007Database/session not initialized before query execution.
Transactions & WALERR_TX_STATE_CONFLICT4001Transaction state conflict (e.g., invalid transitions).
Transactions & WALERR_WAL_WRITE_FAIL4002Failed to append to the write-ahead log.
Transactions & WALERR_TX_TIMEOUT4003Transaction exceeded the timeout limit.
Schema & TypesERR_SCHEMA_MISMATCH5001Schema mismatch between operation and stored data.
Schema & TypesERR_INVALID_SCHEMA5002Schema definition is invalid.
Schema & TypesERR_TYPE_CONVERSION5003Illegal type conversion requested.
Schema & TypesERR_TYPE_OVERFLOW5004Value cannot fit into the target data type.
Schema & TypesERR_INDEX_ERROR5005Index/offset out of bounds.
Schema & TypesERR_PROPERTY_NOT_FOUND5006Requested property missing in schema.
Deployment / PlatformERR_PLATFORM_ABI6001ABI mismatch between binaries and host platform.
Deployment / PlatformERR_PY_BIND_INIT6002Python binding initialization failed.
Deployment / PlatformERR_ARCH_MISMATCH6003Binary architecture does not match runtime environment.
Deployment / PlatformERR_DEPLOY_DEPENDENCY6004Missing runtime dependency during deployment.
Feature GapsERR_NOT_IMPLEMENTED7001Feature placeholder; not yet implemented.
GeneralERR_UNKNOWN9999Unclassified error; inspect logs for context.

Tip: When adding new error codes, update proto/error.proto first, regenerate the protobuf outputs if necessary, and extend this document so other developers can discover the new code quickly.