StaticisStaticthrowStaticvalidateValidate that an ID is a non-empty string.
Identifier to validate
Label for the ID (e.g., "kernel", "session")
StaticvalidateValidate that a kernel connection exists and matches the given ID.
Kernel connection to validate (may be null)
Expected kernel identifier
OptionalmanagerType: stringType of manager for better error messages
StaticvalidateValidate that a path is a non-empty string.
Path to validate
Label for the path (e.g., "notebook path")
StaticvalidateValidate that a session connection exists and matches the given ID.
Session connection to validate (may be null)
Expected session identifier
OptionalmanagerType: stringType of manager for better error messages
StaticvalidateValidate that a session connection exists and matches the given path.
Session connection to validate (may be null)
Expected session path (notebook path)
OptionalmanagerType: stringType of manager for better error messages
Validation helper utilities for kernel and session managers.
Centralizes validation logic to ensure consistent error messages and behavior across all manager types.