Skip to main content

Module error

Module error 

Source
Expand description

Error types for proc CLI

Provides structured error handling with helpful suggestions for users.

Enums§

ExitCode
Exit codes for CLI
ProcError
Main error type for proc operations

Constants§

REASON_COMMAND_LINE_ONLY
The reason of an exit-2 JSON error for a name that no process has, though some have it in their command line (--cmd would match those)
REASON_INVALID_INPUT
The reason of an exit-4 JSON error caused by bad flags, values or arguments, including clap’s own usage errors
REASON_NEEDS_CONFIRMATION
The reason of an exit-4 JSON error for a command that changes processes and was not given --yes
REASON_NOT_FOUND
The reason of an exit-2 JSON error: no process holds that PID, name or port (any more)
REASON_NOT_SUPPORTED
The reason of an exit-4 JSON error for a command this OS does not support
REASON_PERMISSION_DENIED
The reason of an exit-3 JSON error
REASON_RULED_OUT
The reason of an exit-2 JSON error for a target whose guards (--by, --in, --start-time) ruled out every process it found; ruled_out_by names them
REASON_SYSTEM_ERROR
The reason of an exit-1 JSON error: proc itself could not do its part, such as reading the process or port table

Functions§

command_line_hint
The hint for a name that matched nothing by name but is in some command lines

Type Aliases§

Result
Result type alias for proc operations