Expand description
Error types for proc CLI
Provides structured error handling with helpful suggestions for users.
Enums§
Constants§
- REASON_
COMMAND_ LINE_ ONLY - The
reasonof an exit-2 JSON error for a name that no process has, though some have it in their command line (--cmdwould match those) - REASON_
INVALID_ INPUT - The
reasonof an exit-4 JSON error caused by bad flags, values or arguments, including clap’s own usage errors - REASON_
NEEDS_ CONFIRMATION - The
reasonof an exit-4 JSON error for a command that changes processes and was not given--yes - REASON_
NOT_ FOUND - The
reasonof an exit-2 JSON error: no process holds that PID, name or port (any more) - REASON_
NOT_ SUPPORTED - The
reasonof an exit-4 JSON error for a command this OS does not support - REASON_
PERMISSION_ DENIED - The
reasonof an exit-3 JSON error - REASON_
RULED_ OUT - The
reasonof an exit-2 JSON error for a target whose guards (--by,--in,--start-time) ruled out every process it found;ruled_out_bynames them - REASON_
SYSTEM_ ERROR - The
reasonof 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